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 ISvgRect

interface ISvgRect
Extends ISvgNode Represents an SVG rect element. The rect element creates rectangular shapes with optional rounded corners. See also - ISvgNode.

Methods

setX()

void setX(SvgLength x)
Sets the x coordinate of the rectangle’s starting position. Default value is 0.0 with SvgUnit::Number

Parameters

x
SvgLength — Required SvgLength the value to set as the X-coordinate.

setY()

void setY(SvgLength y)
Sets the y coordinate of the rectangle’s starting position. Default value is 0.0 with SvgUnit::Number

Parameters

y
SvgLength — Required SvgLength the value to set as the Y-coordinate.

setWidth()

void setWidth(SvgLength width)
Sets the width of the rectangle. Default value is 100.0 with SvgUnit::Percentage

Parameters

width
SvgLength — Required SvgLength the value to set as the rectangle’s width.

setHeight()

void setHeight(SvgLength height)
Sets the height of the rectangle. Default value is 100.0 with SvgUnit::Percentage

Parameters

height
SvgLength — Required SvgLength the value to set as the rectangle’s height.

setRx()

void setRx(SvgLength rx)
Sets the horizontal radius for rounding the rectangle’s corners. Default value is 0.0 with SvgUnit::Number

Parameters

rx
SvgLength — Required SvgLength the value to set as the horizontal corner radius.

setRy()

void setRy(SvgLength ry)
Sets the vertical radius for rounding the rectangle’s corners. Default value is 0.0 with SvgUnit::Number

Parameters

ry
SvgLength — Required SvgLength the value to set as the vertical corner radius.
Last modified on October 29, 2026