SVGBuilderExtensions.FillOpacity

SVGBuilderExtensions.FillOpacity<TBuilder> method

Sets the ‘fill-opacity’ attribute for an SVG element. Value must be between 0.0 (fully transparent) and 1.0 (fully opaque).

public static TBuilder FillOpacity<TBuilder>(this TBuilder builder, double opacity)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
opacityThe opacity value to set.

Return Value

The builder instance for chaining.

Exceptions

exceptioncondition
ArgumentOutOfRangeExceptionThrown if opacity is not in the valid range.

See Also