Rect Methods
Collapse the table of content
Expand the table of content

Rect Methods

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

The Rect type exposes the following members.

  NameDescription
Public method Contains Indicates whether the rectangle described by the Rect contains the specified point.
Public method Equals(Object) Indicates whether the specified object is equal to the current Rect. (Overrides ValueType.Equals(Object).)
Public method Equals(Rect) Indicates whether the specified Rect is equal to the current Rect.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Creates a hash code for the Rect. (Overrides ValueType.GetHashCode().)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method Intersect Finds the intersection of the rectangle represented by the current Rect and the rectangle represented by the specified Rect, and stores the result as the current Rect.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString() Returns a string representation of the Rect structure. (Overrides ValueType.ToString().)
Public method ToString(IFormatProvider) Returns a string representation of the rectangle by using the specified format provider.
Public method Union(Point) Expands the rectangle represented by the current Rect exactly enough to contain the specified point.
Public method Union(Rect) Expands the rectangle represented by the current Rect exactly enough to contain the specified rectangle.
Top

  NameDescription
Explicit interface implemetation Private method IFormattable.ToString Infrastructure. For a description of this member, see ToString.
Top

Show:
© 2017 Microsoft