Export (0) Print
Expand All

Rectangle Methods

The Rectangle type exposes the following members.

  NameDescription
Public method Static member Supported by the .NET Compact Framework Ceiling Converts the specified RectangleF structure to a Rectangle structure by rounding the RectangleF values to the next higher integer values.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Contains Overloaded. Determines if the specified point is contained within the rectangular region defined by this Rectangle.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals Tests whether obj is a Rectangle structure with the same location and size of this Rectangle structure. (Overrides ValueType.Equals(Object).)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework 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 Static member Supported by the .NET Compact Framework Supported by the XNA Framework FromLTRB Creates a Rectangle structure with the specified edge locations.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode Returns the hash code for this Rectangle structure. For information about the use of hash codes, see GetHashCode . (Overrides ValueType.GetHashCode().)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType Gets the type of the current instance. (Inherited from Object.)
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Inflate Overloaded. Inflates a Rectangle structure by the specified amount.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Intersect Overloaded. Determines the Rectangle structure that represents the intersection of two rectangles.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework IntersectsWith Determines if this rectangle intersects with rect.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Offset Overloaded. Adjusts the location of this rectangle by the specified amount.
Public method Static member Supported by the .NET Compact Framework Round Converts the specified RectangleF to a Rectangle by rounding the RectangleF values to the nearest integer values.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString Converts the attributes of this Rectangle to a human-readable string. (Overrides ValueType.ToString().)

In .NET Compact Framework 3.5, this member is inherited from Object.ToString().


In XNA Framework 3.0, this member is inherited from Object.ToString().
Public method Static member Supported by the .NET Compact Framework Truncate Converts the specified RectangleF to a Rectangle by truncating the RectangleF values.
Public method Static member Supported by the .NET Compact Framework Supported by the XNA Framework Union Gets a Rectangle structure that contains the union of two Rectangle structures.
Top

Community Additions

ADD
Show:
© 2014 Microsoft