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
Constructor | Description |
---|---|
init | Constructs a new instance of SVGLinearGradientElementBuilder |
Methods
Method | Description |
---|---|
build | |
build | |
href | Sets the ‘href’ attribute of the SVG ’linearGradient’ element, specifying a reference to another gradient. |
x1 | Sets the ‘x1’ attribute of the SVG ’linearGradient’ element, specifying the x-coordinate of the start point of the gradient. |
y1 | Sets the ‘y1’ attribute of the SVG ’linearGradient’ element, specifying the y-coordinate of the start point of the gradient. |
x2 | Sets the ‘x2’ attribute of the SVG ’linearGradient’ element, specifying the x-coordinate of the end point of the gradient. |
y2 | Sets the ‘y2’ attribute of the SVG ’linearGradient’ element, specifying the y-coordinate of the end point of the gradient. |
build_element | Builds and returns an SVGElement instance based on the current configuration of the builder. |
attribute | Sets or updates an attribute on an SVG element. |
See Also
- module
aspose.svg.builder
- class
ISVGElementBuilder