Description
The Rect
property of the AddRoundRectPathCommand
class represents the rectangular area that defines the bounds of the rounded rectangle path to be added to an SVG element. This property is of type Sandbox.Rect
, which encapsulates the dimensions and position of the rectangle.
Usage
To use the Rect
property, you need to create an instance of the AddRoundRectPathCommand
class and then set or get the Rect
property to define or retrieve the bounds of the rounded rectangle.
Example
// Create an instance of AddRoundRectPathCommand
var roundRectCommand = new AddRoundRectPathCommand();
// Define a rectangle with specific dimensions and position
roundRectCommand.Rect = new Rect(10, 20, 100, 50);
// Access the Rect property to get the current rectangle
Rect currentRect = roundRectCommand.Rect;
// Output the rectangle's properties
// Note: Use appropriate methods to display or utilize the Rect properties
// e.g., currentRect.X, currentRect.Y, currentRect.Width, currentRect.Height