SVGBuilderExtensions.Stroke

Stroke<TBuilder>(this TBuilder, Action<PaintBuilder>)

Sets the ‘stroke’ attribute for an SVG element using a custom paint configuration.

public static TBuilder Stroke<TBuilder>(this TBuilder builder, Action<PaintBuilder> configure)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
configureA delegate to configure the paint.

Return Value

The builder instance for chaining.

See Also


Stroke<TBuilder>(this TBuilder, Color)

Sets the ‘stroke’ attribute for an SVG element using a specific color.

public static TBuilder Stroke<TBuilder>(this TBuilder builder, Color color)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
colorThe color to use for the stroke.

Return Value

The builder instance for chaining.

See Also


Stroke<TBuilder>(this TBuilder, Paint)

Sets the ‘stroke’ attribute for an SVG element using a predefined paint value.

public static TBuilder Stroke<TBuilder>(this TBuilder builder, Paint paint)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
paintThe paint value to set.

Return Value

The builder instance for chaining.

See Also