Rectangle Methods

 

Namespace:   System.Drawing
Assembly:  System.Drawing (in System.Drawing.dll)

NameDescription
System_CAPS_pubmethodSystem_CAPS_staticCeiling(RectangleF)

Converts the specified RectangleF structure to a Rectangle structure by rounding the RectangleF values to the next higher integer values.

System_CAPS_pubmethodContains(Int32, Int32)

Determines if the specified point is contained within this Rectangle structure.

System_CAPS_pubmethodContains(Point)

Determines if the specified point is contained within this Rectangle structure.

System_CAPS_pubmethodContains(Rectangle)

Determines if the rectangular region represented by rect is entirely contained within this Rectangle structure.

System_CAPS_pubmethodEquals(Object)

Tests whether obj is a Rectangle structure with the same location and size of this Rectangle structure.(Overrides ValueType.Equals(Object).)

System_CAPS_pubmethodSystem_CAPS_staticFromLTRB(Int32, Int32, Int32, Int32)

Creates a Rectangle structure with the specified edge locations.

System_CAPS_pubmethodGetHashCode()

Returns the hash code for this Rectangle structure. For information about the use of hash codes, see GetHashCode .(Overrides ValueType.GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInflate(Int32, Int32)

Enlarges this Rectangle by the specified amount.

System_CAPS_pubmethodSystem_CAPS_staticInflate(Rectangle, Int32, Int32)

Creates and returns an enlarged copy of the specified Rectangle structure. The copy is enlarged by the specified amount. The original Rectangle structure remains unmodified.

System_CAPS_pubmethodInflate(Size)

Enlarges this Rectangle by the specified amount.

System_CAPS_pubmethodIntersect(Rectangle)

Replaces this Rectangle with the intersection of itself and the specified Rectangle.

System_CAPS_pubmethodSystem_CAPS_staticIntersect(Rectangle, Rectangle)

Returns a third Rectangle structure that represents the intersection of two other Rectangle structures. If there is no intersection, an empty Rectangle is returned.

System_CAPS_pubmethodIntersectsWith(Rectangle)

Determines if this rectangle intersects with rect.

System_CAPS_pubmethodOffset(Int32, Int32)

Adjusts the location of this rectangle by the specified amount.

System_CAPS_pubmethodOffset(Point)

Adjusts the location of this rectangle by the specified amount.

System_CAPS_pubmethodSystem_CAPS_staticRound(RectangleF)

Converts the specified RectangleF to a Rectangle by rounding the RectangleF values to the nearest integer values.

System_CAPS_pubmethodToString()

Converts the attributes of this Rectangle to a human-readable string.(Overrides ValueType.ToString().)

System_CAPS_pubmethodSystem_CAPS_staticTruncate(RectangleF)

Converts the specified RectangleF to a Rectangle by truncating the RectangleF values.

System_CAPS_pubmethodSystem_CAPS_staticUnion(Rectangle, Rectangle)

Gets a Rectangle structure that contains the union of two Rectangle structures.

Return to top
Show: