SVGStopElementBuilder Class
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
Properties
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