Interface ISvgLinearGradient
interface ISvgLinearGradient
Extends ISvgGradient
Represents an SVG linearGradient element.
The linearGradient SVG element
lets authors define linear gradients to apply to other SVG elements.
See also - ISvgGradient.
Methods
setX1()
Sets the x1 coordinate of the starting point for the linear gradient. This attribute defines the x coordinate of the starting point of the vector gradient along which the linear gradient is drawn. Default value is 0.0 withvoidsetX1(SvgLengthx1)
SvgUnit::Percentage
Parameters
x1
SvgLength — Required
SvgLength to set as the X-coordinate of the starting point.
setY1()
Sets the y1 coordinate of the starting point for the linear gradient. This attribute defines the y coordinate of the starting point of the vector gradient along which the linear gradient is drawn. Default value is 0.0 withvoidsetY1(SvgLengthy1)
SvgUnit::Percentage
Parameters
y1
SvgLength — Required
SvgLength to set as the Y-coordinate of the starting point.
setX2()
Sets the x2 coordinate of the ending point for the linear gradient. This attribute defines the x coordinate of the ending point of the vector gradient along which the linear gradient is drawn. Default value is 100.0 withvoidsetX2(SvgLengthx2)
SvgUnit::Percentage
Parameters
x2
SvgLength — Required
SvgLength to set as the X-coordinate of the ending point.
setY2()
Sets the y2 coordinate of the ending point for the linear gradient. This attribute defines the y coordinate of the ending point of the vector gradient along which the linear gradient is drawn. Default value is 100.0 withvoidsetY2(SvgLengthy2)
SvgUnit::Percentage
Parameters
y2
SvgLength — Required
SvgLength to set as the Y-coordinate of the ending point.

