SVGBuilderExtensions.Fill

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

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

public static TBuilder Fill<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 PaintBuilder.

Return Value

The builder instance for chaining.

See Also


Fill<TBuilder>(this TBuilder, Color)

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

public static TBuilder Fill<TBuilder>(this TBuilder builder, Color color)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
colorThe color to set as the fill.

Return Value

The builder instance for chaining.

See Also


Fill<TBuilder>(this TBuilder, Paint)

Sets the ‘fill’ attribute for an SVG element using a predefined Paint enum value.

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

Return Value

The builder instance for chaining.

See Also


Fill<TBuilder>(this TBuilder, AnimationFill)

Sets the ‘fill’ attribute, defining how the animation should apply styles outside its active duration.

public static TBuilder Fill<TBuilder>(this TBuilder builder, AnimationFill value)
    where TBuilder : ISVGElementBuilder, IAnimationTimingAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe SVG element builder.
valueThe fill behavior of the animation.

Return Value

The builder instance for chaining.

See Also