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 ISvgLine

interface ISvgLine
Extends ISvgNode Represents an SVG line element. The line element defines a line segment between two points (x1, y1) and (x2, y2). See also - ISvgNode.

Methods

setX1()

void setX1(SvgLength x1)
Sets the x1 coordinate of the line’s starting point. Default value is 0.0 with SvgUnit::Number

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 line’s starting point. Default value is 0.0 with SvgUnit::Number

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 line’s ending point. Default value is 0.0 with SvgUnit::Number

Parameters

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

setY2()

void setY2(SvgLength y2)
Sets the y2 coordinate of the line’s ending point. Default value is 0.0 with SvgUnit::Number

Parameters

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