SVGBuilderExtensions.Width

SVGBuilderExtensions.Width<TBuilder> method

Sets the ‘width’ attribute for an SVG element.

public static TBuilder Width<TBuilder>(this TBuilder builder, double value, 
    LengthType type = LengthType.Px)
    where TBuilder : ISVGElementBuilder, IWidthAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
valueThe value for the ‘width’ attribute.
typeThe type of length measurement (default is pixels).

Return Value

The builder instance for chaining.

See Also