Rect Methods

(see also Protected Methods )
  Name Description
Public method Contains Overloaded. Determines whether this rectangle contains the specified point or rectangle.
Public method Equals Overloaded. Overridden. Determines whether the specified rectangles are equal.
Public method GetHashCode Overridden. Creates a hash code from this rectangle's X, Y, Width, and Height values.
Public method GetType  Gets the Type of the current instance. (inherited from Object)
Public method Inflate Overloaded. Expands or contracts the rectangle by the specified amount.
Public method Intersect Overloaded. Finds the intersection of two rectangles and stores the result as a Rect structure.
Public method IntersectsWith Indicates whether the specified rectangle intersects with this rectangle.
Public method Offset Overloaded. Translates the rectangle by the specified amount.
Public method Static op_Equality Compares two rectangles for exact equality.
Public method Static op_Inequality Compares two rectangles for inequality.
Public method Static Parse Converts a String representation of a rectangle into the equivalent Rect structure.
Public method Static ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Scale Multiplies the size of the current rectangle by the specified x and y value.
Public method ToString Overloaded. Overridden. Creates a String representation of this rectangle.
Public method Transform Overloaded. Transforms a rectangle using the specified matrix.
Public method Union Overloaded. Expands a rectangle exactly enough to contain the specified rectangle or point.

  Name Description
Protected method Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)

  Name Description
Explicit interface implementation Method System.IFormattable.ToString This member supports the Windows Presentation Foundation (WPF) infrastructure and is not intended to be used directly from your code.

Community Additions