Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Native
Skip to main content

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()

void setX1(SvgLength x1)
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 with SvgUnit::Percentage

Parameters

x1
SvgLength — Required SvgLength to set as the X-coordinate of the starting point.

setY1()

void setY1(SvgLength y1)
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 with SvgUnit::Percentage

Parameters

y1
SvgLength — Required SvgLength to set as the Y-coordinate of the starting point.

setX2()

void setX2(SvgLength x2)
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 with SvgUnit::Percentage

Parameters

x2
SvgLength — Required SvgLength to set as the X-coordinate of the ending point.

setY2()

void setY2(SvgLength y2)
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 with SvgUnit::Percentage

Parameters

y2
SvgLength — Required SvgLength to set as the Y-coordinate of the ending point.
Last modified on October 29, 2026