SVGBuilderExtensions.StrokeDashArray

StrokeDashArray<TBuilder>(this TBuilder, params double[])

Sets the ‘stroke-dasharray’ attribute for an SVG element, defining the pattern of dashes and gaps used to paint the stroke.

public static TBuilder StrokeDashArray<TBuilder>(this TBuilder builder, params double[] dashArray)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
dashArrayThe array of dash lengths.

Return Value

The builder instance for chaining.

See Also


StrokeDashArray<TBuilder>(this TBuilder, Dash)

Sets the ‘stroke-dasharray’ attribute for an SVG element using a predefined dash pattern.

public static TBuilder StrokeDashArray<TBuilder>(this TBuilder builder, Dash value)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
valueThe dash pattern to set.

Return Value

The builder instance for chaining.

See Also