SVGStopElementBuilder Class
Contents
[
Hide
]SVGStopElementBuilder class
Builder class for constructing an SVG ‘stop’ element. The ‘stop’ element is used within a gradient definition (either linear or radial) to define the color stops. This class provides methods to set various attributes specific to the ‘stop’ element, such as the offset and color.
public class SVGStopElementBuilder : SVGElementBuilder<SVGStopElement>,
IBaseAnimationElementBuilder, ICoreAttributeSetter, IDocumentElementEventAttributeSetter,
IGlobalEventAttributeSetter, IPresentationAttributeSetter
Constructors
Name | Description |
---|---|
SVGStopElementBuilder() | The default constructor. |
Properties
Name | Description |
---|---|
Configurations { get; } |
Methods
Name | Description |
---|---|
AddScript(Action<SVGScriptElementBuilder>) | Adds a script configuration to the SVG ‘stop’ element. |
AddStyle(Action<SVGStyleElementBuilder>) | Adds a style configuration to the SVG ‘stop’ element. |
Attribute(string, string) | |
virtual Build(Document) | |
virtual Build(SVGStopElement) | |
BuildElement(Document) | |
Offset(double, StopUnitType) | Sets the ‘offset’ attribute of the SVG ‘stop’ element, specifying the position of the color stop within the gradient. |
See Also
- class SVGElementBuilder<T>
- class SVGStopElement
- interface IBaseAnimationElementBuilder
- interface ICoreAttributeSetter
- interface IDocumentElementEventAttributeSetter
- interface IGlobalEventAttributeSetter
- interface IPresentationAttributeSetter
- namespace Aspose.Svg.Builder
- assembly Aspose.SVG