SVGBuilderExtensions.StrokeWidth

SVGBuilderExtensions.StrokeWidth<TBuilder> method

Sets the ‘stroke-width’ attribute for an SVG element, defining the width of the stroke.

public static TBuilder StrokeWidth<TBuilder>(this TBuilder builder, double value, 
    LengthType type = LengthType.Px)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
valueThe stroke width value.
typeThe unit type for the stroke width.

Return Value

The builder instance for chaining.

See Also