[]
Represents a rectangle canvas element.
public class Rect : CanvasItem, IDisposable, ICloneable, IBordered
public void DrawRect(float startX, float startY, float endX, float endY)
{
CanvasItems.Add(new Rect(startX,startY,endX,endY));
}
Name | Description |
---|---|
Rect(float, float, float, float) | Initializes a new instance of the Rect class. |
Name | Description |
---|---|
Bounds | Gets the bounds of the item. |
Name | Description |
---|---|
Clone() | Performs a cloning of this instance. |
ToString() | Returns a string that represents the current object. |