SVGBuilderExtensions.Color

Color(this TBuilder, Action<ColorBuilder>)

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

public static TBuilder Color<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


Color(this TBuilder, Color)

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

public static TBuilder Color<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