In This Topic
The following tables list the members exposed by RectF.
Public Constructors
Public Fields
| Name | Description |
![Public Field](template/packages/core-dotnet/images/publicField.png) | Bottom | The y-coordinate of the bottom edge. |
![Public Field](template/packages/core-dotnet/images/publicField.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | Empty | An empty rectangle. |
![Public Field](template/packages/core-dotnet/images/publicField.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | Infinite | A rectangle that has its upper-left corner set to (negative infinity, negative infinity) and its lower-right corner set to (infinity, infinity). |
![Public Field](template/packages/core-dotnet/images/publicField.png) | Left | The x-coordinate of the left edge. |
![Public Field](template/packages/core-dotnet/images/publicField.png) | Right | The x-coordinate of the right edge. |
![Public Field](template/packages/core-dotnet/images/publicField.png) | SizeInBytes | The size of the RectF type, in bytes. |
![Public Field](template/packages/core-dotnet/images/publicField.png) | Top | The y-coordinate of the top edge. |
Top
Public Properties
| Name | Description |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Center | Gets the point with coordinates of the rectangle center. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | HasSpace | Determines if there is some space within the rectangle. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Height | Gets or sets the height of the rectangle. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | IsEmpty | Determines if all components of RectF are equal to zero. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Location | Gets the point with coordinates of the left top corner of the rectangle. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Size | Gets the size of the rectangle. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Width | Gets or sets the width of the rectangle. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | X | Gets or sets the X coordinate of the rectangle. |
![Public Property](template/packages/core-dotnet/images/publicProperty.png) | Y | Gets or sets the Y coordinate of the rectangle. |
Top
Public Methods
| Name | Description |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Circumscribe | Returns a RectL with circumscribed coordinates. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Contains | Overloaded. Determines if the specified point is contained within this rectangle. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | ContainsRef | Determines if the specified rectangle is fully contained within this rectangle. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Equals | Overloaded. Indicates whether this instance and a specified object are equal. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | EqualsRef | Indicates whether this instance and a specified object are equal. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | FromDips | Overloaded. Converts a rectangle from DIPs to pixels. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | FromLTRB | Creates a RectF struct from (left, top, right, bottom) coordinates. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | GetHashCode | Returns a hash code for this instance. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Inflate | Overloaded. Inflates the rectangle by the specified amount. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | Intersect | Returns a rectangle that represents the intersection of two rectangles. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | IntersectFast | Quickly updates a rectangle to represent the intersection with another rectangle. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | IntersectRef | Returns a rectangle that represents the intersection of two rectangles. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | IntersectsWith | Determines if this rectangle intersects with rect. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | IntersectsWithRef | Determines if this rectangle intersects with rect. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | MakeLTRB | Converts the rectangle from (X, Y, Width, Height) to (Left, Top, Right, Bottom) coordinates. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | MakeXYWH | Converts the rectangle from (Left, Top, Right, Bottom) to (X, Y, Width, Height) coordinates. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Offset | Overloaded. Offsets the rectangle by the specified amount. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Round | Returns a RectL with rounded coordinates. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | Scale | Overloaded. Scales all coordinates of a rectangle by the specified scaleFactor. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | ToDips | Overloaded. Converts a rectangle from pixels to DIPs. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | ToRect | Converts RectF to System.Windows.Rect. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | ToRectD | Converts RectF to RectD. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | ToString | Returns a string that represents the current object. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Transform | Overloaded. Transforms a rectangle by the 3x2 matrix. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | TransformRef | Overloaded. Transforms a rectangle by the 3x2 matrix. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) | Truncate | Returns a RectL with truncated coordinates. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | Union | Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
![Public Method](template/packages/core-dotnet/images/publicMethod.png) ![static (Shared in Visual Basic)](template/packages/core-dotnet/images/static.png) | UnionRef | Creates the smallest possible third rectangle that can contain both of two rectangles that form a union. |
Top
Public Operators
See Also