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.
Describes the width, height, and point origin of a rectangle.
public value class Rect : IFormattable
public struct Rect : IFormattable
[System.Security.SecurityCritical] public struct Rect : IFormattable
type Rect = struct interface IFormattable
[<System.Security.SecurityCritical>] type Rect = struct interface IFormattable
Public Structure Rect Implements IFormattable
This struct represents the .NET projection of the Windows Runtime (WinRT)
Rect struct. For more information, see Rect in the UWP API reference.
|Rect(Double, Double, Double, Double)||
Initializes a Rect struct that has the specified x-coordinate, y-coordinate, width, and height.
Initializes a Rect struct that is exactly large enough to contain the two specified points.
Initializes a Rect struct based on an origin and size.
Gets the y-axis value of the bottom of the rectangle.
Gets a special value that represents a rectangle with no position or area.
Gets or sets the height of the rectangle.
Gets a value that indicates whether the rectangle is the Empty rectangle.
Gets the x-axis value of the left side of the rectangle.
Gets the x-axis value of the right side of the rectangle.
Gets the y-axis position of the top of the rectangle.
Gets or sets the width of the rectangle.
Gets or sets the x-axis value of the left side of the rectangle.
Gets or sets the y-axis value of the top side of the rectangle.
Indicates whether the rectangle described by the Rect contains the specified point.
Indicates whether the specified object is equal to the current Rect.
Creates a hash code for the Rect.
Returns a string representation of the Rect struct.
Returns a string representation of the rectangle by using the specified format provider.
Expands the rectangle represented by the current Rect exactly enough to contain the specified point.
Expands the rectangle represented by the current Rect exactly enough to contain the specified rectangle.
Compares two Rect structs for equality.
Compares two Rect structs for inequality.
Explicit Interface Implementations
For a description of this member, see ToString(String, IFormatProvider).