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.

The SVGLinearGradientElementBuilder type exposes the following members:

Constructors

ConstructorDescription
initConstructs a new instance of SVGLinearGradientElementBuilder

Methods

MethodDescription
build
build
hrefSets the ‘href’ attribute of the SVG ’linearGradient’ element, specifying a reference to another gradient.
x1Sets the ‘x1’ attribute of the SVG ’linearGradient’ element, specifying the x-coordinate of the start point of the gradient.
y1Sets the ‘y1’ attribute of the SVG ’linearGradient’ element, specifying the y-coordinate of the start point of the gradient.
x2Sets the ‘x2’ attribute of the SVG ’linearGradient’ element, specifying the x-coordinate of the end point of the gradient.
y2Sets the ‘y2’ attribute of the SVG ’linearGradient’ element, specifying the y-coordinate of the end point of the gradient.
build_elementBuilds and returns an SVGElement instance based on the current configuration of the builder.
attributeSets or updates an attribute on an SVG element.

See Also