Export (0) Print
Expand All

Rect Members

Describes the width, height, and location of a rectangle.

The Rect type exposes the following members.

  NameDescription
Public method Rect Overloaded. Initializes a new instance of the Rect structure.
Top

  NameDescription
Public method Contains Overloaded. Indicates whether the rectangle contains the specified point or rectangle.
Public method Static member Equals Overloaded. Indicates whether two rectangles are equal.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Creates a hash code for the rectangle. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method Static member Inflate Overloaded. Creates a rectangle that results from expanding or shrinking a rectangle by the specified amount.
Public method Static member Intersect Overloaded. Finds the intersection of two rectangles.
Public method IntersectsWith Indicates whether the specified rectangle intersects with the current rectangle.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Static member Offset Overloaded. Moves a rectangle by the specified amount.
Public method Static member Parse Creates a new rectangle from the specified string representation.
Public method Scale Multiplies the size of the current rectangle by the specified x and y values.
Public method ToString Overloaded. Returns a string representation of the rectangle.
Public method Static member Transform Overloaded. Transforms a rectangle by using the specified matrix.
Public method Static member Union Overloaded. Creates a rectangle that is exactly large enough to contain a given rectangle and a specified point or second rectangle.
Top

  NameDescription
Public operator Static member Equality Compares two rectangles for exact equality.
Public operator Static member Inequality Compares two rectangles for inequality.
Top

  NameDescription
Public property Bottom Gets the y-axis value of the bottom of the rectangle.
Public property BottomLeft Gets the position of the bottom-left corner of the rectangle
Public property BottomRight Gets the position of the bottom-right corner of the rectangle.
Public property Static member Empty Gets a special value that represents a rectangle with no position or area.
Public property Height Gets or sets the height of the rectangle.
Public property IsEmpty Gets a value that indicates whether the rectangle is the Empty rectangle.
Public property Left Gets the x-axis value of the left side of the rectangle.
Public property Location Gets or sets the position of the top-left corner of the rectangle.
Public property Right Gets the x-axis value of the right side of the rectangle.
Public property Size Gets or sets the width and height of the rectangle.
Public property Top Gets the y-axis position of the top of the rectangle.
Public property TopLeft Gets the position of the top-left corner of the rectangle.
Public property TopRight Gets the position of the top-right corner of the rectangle.
Public property Width Gets or sets the width of the rectangle.
Public property X Gets or sets the x-axis value of the left side of the rectangle.
Public property Y Gets or sets the y-axis value of the top side of the rectangle.
Top

  NameDescription
Explicit interface implemetation Private method IFormattable.ToString This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.
Top

Community Additions

ADD
Show:
© 2015 Microsoft