SVGBuilderExtensions.SetAttribute

SVGBuilderExtensions.SetAttribute<TBuilder> method

Sets an attribute on the SVG element. This method is used to add or modify an attribute of the SVG element being built.

public static TBuilder SetAttribute<TBuilder>(this TBuilder builder, string name, string value)
    where TBuilder : IAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder on which the attribute is set.
nameThe name of the attribute to set.
valueThe value of the attribute.

Return Value

The original SVG element builder for method chaining.

See Also