RectangleF Structure

 

Stores a set of four floating-point numbers that represent the location and size of a rectangle. For more advanced region functions, use a Region object.

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

<SerializableAttribute>
Public Structure RectangleF

NameDescription
System_CAPS_pubmethodRectangleF(PointF, SizeF)

Initializes a new instance of the RectangleF class with the specified location and size.

System_CAPS_pubmethodRectangleF(Single, Single, Single, Single)

Initializes a new instance of the RectangleF class with the specified location and size.

NameDescription
System_CAPS_pubpropertyBottom

Gets the y-coordinate that is the sum of Y and Height of this RectangleF structure.

System_CAPS_pubpropertyHeight

Gets or sets the height of this RectangleF structure.

System_CAPS_pubpropertyIsEmpty

Tests whether the Width or Height property of this RectangleF has a value of zero.

System_CAPS_pubpropertyLeft

Gets the x-coordinate of the left edge of this RectangleF structure.

System_CAPS_pubpropertyLocation

Gets or sets the coordinates of the upper-left corner of this RectangleF structure.

System_CAPS_pubpropertyRight

Gets the x-coordinate that is the sum of X and Width of this RectangleF structure.

System_CAPS_pubpropertySize

Gets or sets the size of this RectangleF.

System_CAPS_pubpropertyTop

Gets the y-coordinate of the top edge of this RectangleF structure.

System_CAPS_pubpropertyWidth

Gets or sets the width of this RectangleF structure.

System_CAPS_pubpropertyX

Gets or sets the x-coordinate of the upper-left corner of this RectangleF structure.

System_CAPS_pubpropertyY

Gets or sets the y-coordinate of the upper-left corner of this RectangleF structure.

NameDescription
System_CAPS_pubmethodContains(PointF)

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

System_CAPS_pubmethodContains(RectangleF)

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

System_CAPS_pubmethodContains(Single, Single)

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

System_CAPS_pubmethodEquals(Object)

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

System_CAPS_pubmethodSystem_CAPS_staticFromLTRB(Single, Single, Single, Single)

Creates a RectangleF structure with upper-left corner and lower-right corner at the specified locations.

System_CAPS_pubmethodGetHashCode()

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

System_CAPS_pubmethodGetType()

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

System_CAPS_pubmethodSystem_CAPS_staticInflate(RectangleF, Single, Single)

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

System_CAPS_pubmethodInflate(Single, Single)

Enlarges this RectangleF structure by the specified amount.

System_CAPS_pubmethodInflate(SizeF)

Enlarges this RectangleF by the specified amount.

System_CAPS_pubmethodIntersect(RectangleF)

Replaces this RectangleF structure with the intersection of itself and the specified RectangleF structure.

System_CAPS_pubmethodSystem_CAPS_staticIntersect(RectangleF, RectangleF)

Returns a RectangleF structure that represents the intersection of two rectangles. If there is no intersection, and empty RectangleF is returned.

System_CAPS_pubmethodIntersectsWith(RectangleF)

Determines if this rectangle intersects with rect.

System_CAPS_pubmethodOffset(PointF)

Adjusts the location of this rectangle by the specified amount.

System_CAPS_pubmethodOffset(Single, Single)

Adjusts the location of this rectangle by the specified amount.

System_CAPS_pubmethodToString()

Converts the Location and Size of this RectangleF to a human-readable string.(Overrides ValueType.ToString().)

System_CAPS_pubmethodSystem_CAPS_staticUnion(RectangleF, RectangleF)

Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticEmpty

Represents an instance of the RectangleF class with its members uninitialized.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(RectangleF, RectangleF)

Tests whether two RectangleF structures have equal location and size.

System_CAPS_puboperatorSystem_CAPS_staticWidening(Rectangle to RectangleF)

Converts the specified Rectangle structure to a RectangleF structure.

System_CAPS_puboperatorSystem_CAPS_staticInequality(RectangleF, RectangleF)

Tests whether two RectangleF structures differ in location or size.

A rectangle is defined by its width, height, and upper-left corner.

.NET Framework
Available since 1.1

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: