SVGBuilderExtensions.AddFeFlood

AddFeFlood<TBuilder>(this TBuilder, Color?, double?, string, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<double, (double, LengthType)>, OneOf<Color, Paint, string>, OneOf<Color, Paint, string>, string, Action<SVGFEFloodElementBuilder>)

Adds an ‘feFlood’ element to the SVG builder, creating a uniform flood color effect over the entire filter subregion.

public static TBuilder AddFeFlood<TBuilder>(this TBuilder builder, Color? floodColor = default, 
    double? floodOpacity = null, string result = null, 
    OneOf<double, (double, LengthType)> x = null, OneOf<double, (double, LengthType)> y = null, 
    OneOf<double, (double, LengthType)> width = null, 
    OneOf<double, (double, LengthType)> height = null, OneOf<Color, Paint, string> fill = null, 
    OneOf<Color, Paint, string> stroke = null, string id = null, 
    Action<SVGFEFloodElementBuilder> extend = null)
    where TBuilder : ISVGElementBuilder, IFilterPrimitiveElementBuilder
ParameterDescription
TBuilderThe type of the SVG element builder, facilitating fluent API usage.
builderThe SVG builder instance to which the ‘feFlood’ element will be added.
floodColorThe color used for the flood effect. Optional parameter.
floodOpacityThe opacity level of the flood color. Optional parameter.
resultThe result identifier for this filter primitive. Optional parameter.
xThe x-coordinate of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
yThe y-coordinate of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
widthThe width of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
heightThe height of the filter primitive subregion. Can be a double or a ValueTuple with LengthType. Optional parameter.
fillThe fill color, paint or paint server id for the element. Optional parameter.
strokeThe stroke color, paint or paint server id for the element. Optional parameter.
idThe unique identifier for the filter primitive element. Optional parameter.
extendAn optional action to further configure the SVGFEFloodElementBuilder.

Return Value

The builder instance, allowing for method chaining.

See Also


AddFeFlood<TBuilder>(this TBuilder, Action<SVGFEFloodElementBuilder>)

Adds an ‘feFlood’ element configuration to the builder. This element fills the filter subregion with a specified color.

public static TBuilder AddFeFlood<TBuilder>(this TBuilder builder, 
    Action<SVGFEFloodElementBuilder> configure)
    where TBuilder : ISVGElementBuilder, IFilterPrimitiveElementBuilder
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
configureThe configuration action for the ‘feFlood’ element.

Return Value

The builder instance for chaining.

See Also