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
Parameter | Description |
---|---|
TBuilder | The type of the SVG element builder. |
builder | The builder instance. |
opacity | The opacity value to set. |
Return Value
The builder instance for chaining.
Exceptions
exception | condition |
---|---|
ArgumentOutOfRangeException | Thrown if opacity is not in the valid range. |
See Also
- interface IAttributeSetter
- interface IPresentationAttributeSetter
- class SVGBuilderExtensions
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG