SVGBuilderExtensions.StopOpacity

SVGBuilderExtensions.StopOpacity<TBuilder> method

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

public static TBuilder StopOpacity<TBuilder>(this TBuilder builder, double opacity)
    where TBuilder : IAttributeSetter, IPresentationAttributeSetter
ParameterDescription
TBuilderThe type of the SVG element builder.
builderThe builder instance.
opacityThe opacity value (0.0 for fully transparent, 1.0 for fully opaque).

Return Value

The builder instance for chaining.

See Also