Rect Struct
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a rectangle with double-precision floating-point x, y coordinates and width and height.
public value class Rect
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Graphics.Converters.RectTypeConverter))]
public struct Rect
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Graphics.Converters.RectTypeConverter))>]
type Rect = struct
Public Structure Rect
- Inheritance
-
Rect
- Attributes
Constructors
Rect(Double, Double, Double, Double) |
Initializes a new instance of the Rect struct with the specified position and dimensions. |
Rect(Point, Size) |
Fields
Zero |
A rectangle with all values (X, Y, Width, Height) set to zero. |
Properties
Bottom | |
Center | |
Height |
Gets or sets the height of the rectangle. |
IsEmpty | |
Left | |
Location | |
Right | |
Size | |
Top | |
Width |
Gets or sets the width of the rectangle. |
X |
Gets or sets the x-coordinate of the rectangle's left edge. |
Y |
Gets or sets the y-coordinate of the rectangle's top edge. |
Methods
Operators
Equality(Rect, Rect) | |
Implicit(Rect to RectF) | |
Inequality(Rect, Rect) |
Extension Methods
Lerp(Rect, Rect, Double) |