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()
Sets the x coordinate of the rectangle’s starting position. Default value is 0.0 withvoidsetX(SvgLengthx)
SvgUnit::Number
Parameters
x
SvgLength — Required
SvgLength the value to set as the X-coordinate.
setY()
Sets the y coordinate of the rectangle’s starting position. Default value is 0.0 withvoidsetY(SvgLengthy)
SvgUnit::Number
Parameters
y
SvgLength — Required
SvgLength the value to set as the Y-coordinate.
setWidth()
Sets the width of the rectangle. Default value is 100.0 withvoidsetWidth(SvgLengthwidth)
SvgUnit::Percentage
Parameters
width
SvgLength — Required
SvgLength the value to set as the rectangle’s width.
setHeight()
Sets the height of the rectangle. Default value is 100.0 withvoidsetHeight(SvgLengthheight)
SvgUnit::Percentage
Parameters
height
SvgLength — Required
SvgLength the value to set as the rectangle’s height.
setRx()
Sets the horizontal radius for rounding the rectangle’s corners. Default value is 0.0 withvoidsetRx(SvgLengthrx)
SvgUnit::Number
Parameters
rx
SvgLength — Required
SvgLength the value to set as the horizontal corner radius.
setRy()
Sets the vertical radius for rounding the rectangle’s corners. Default value is 0.0 withvoidsetRy(SvgLengthry)
SvgUnit::Number
Parameters
ry
SvgLength — Required
SvgLength the value to set as the vertical corner radius.

