This documentation is archived and is not being maintained.

Rect Methods

The Rect type exposes the following members.

  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
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
Show: