SVGBuilderExtensions.StopColor

StopColor<TBuilder>(this TBuilder, Color)

Sets the ‘stop-color’ attribute for an SVG element, defining the color at a gradient stop.

public static TBuilder StopColor<TBuilder>(this TBuilder builder, Color colorValue)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
colorValueThe color value to set.

Return Value

The builder instance for chaining.

See Also


StopColor<TBuilder>(this TBuilder, Action<ColorBuilder>)

Sets the ‘stop-color’ attribute for an SVG element using a custom color configuration.

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

Return Value

The builder instance for chaining.

See Also