SVGLinearGradientElementBuilder Class

SVGLinearGradientElementBuilder class

Builder class for constructing an SVG ’linearGradient’ element, which is used to define a linear gradient within SVG graphics. It enables the building of content within the ’linearGradient’ element and provides methods to set various attributes specific to the ’linearGradient’ element in SVG.

public class SVGLinearGradientElementBuilder : SVGElementBuilder<SVGLinearGradientElement>, 
    IBaseAnimationElementBuilder, ICoreAttributeSetter, IDescriptiveElementBuilder, 
    IDocumentElementEventAttributeSetter, IGlobalEventAttributeSetter, IGradientStopElementBuilder, 
    IPresentationAttributeSetter

Constructors

NameDescription
SVGLinearGradientElementBuilder()The default constructor.

Properties

NameDescription
Configurations { get; }

Methods

NameDescription
AddAnimateTransform(Action<SVGAnimateTransformElementBuilder>)Adds an animate transform configuration to the SVG ’linearGradient’ element.
AddScript(Action<SVGScriptElementBuilder>)Adds a script configuration to the SVG ’linearGradient’ element.
AddStyle(Action<SVGStyleElementBuilder>)Adds a style configuration to the SVG ’linearGradient’ element.
Attribute(string, string)
virtual Build(Document)
virtual Build(SVGLinearGradientElement)
BuildElement(Document)
Href(string)Sets the ‘href’ attribute of the SVG ’linearGradient’ element, specifying a reference to another gradient.
X1(double, LengthType)Sets the ‘x1’ attribute of the SVG ’linearGradient’ element, specifying the x-coordinate of the start point of the gradient.
X2(double, LengthType)Sets the ‘x2’ attribute of the SVG ’linearGradient’ element, specifying the x-coordinate of the end point of the gradient.
Y1(double, LengthType)Sets the ‘y1’ attribute of the SVG ’linearGradient’ element, specifying the y-coordinate of the start point of the gradient.
Y2(double, LengthType)Sets the ‘y2’ attribute of the SVG ’linearGradient’ element, specifying the y-coordinate of the end point of the gradient.

See Also