RectangleF Members
Collapse the table of content
Expand the table of content

RectangleF Members

RectangleF overview

Public Constructors

public constructorRectangleF Constructor

Supported by the .NET Compact Framework.

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

Public Fields

public fieldstatic (Shared in Visual Basic)Empty

Supported by the .NET Compact Framework.

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

Public Properties

public propertyBottom

Supported by the .NET Compact Framework.

Gets the y-coordinate of the bottom edge of this RectangleF structure.
public propertyHeight

Supported by the .NET Compact Framework.

Gets or sets the height of this RectangleF structure.
public propertyIsEmpty

Supported by the .NET Compact Framework.

Tests whether all numeric properties of this RectangleF have values of zero.
public propertyLeft

Supported by the .NET Compact Framework.

Gets the x-coordinate of the left edge of this RectangleF structure.
public propertyLocation Gets or sets the coordinates of the upper-left corner of this RectangleF structure.
public propertyRight

Supported by the .NET Compact Framework.

Gets the x-coordinate of the right edge of this RectangleF structure.
public propertySize Gets or sets the size of this RectangleF.
public propertyTop

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

Gets or sets the width of this RectangleF structure.
public propertyX

Supported by the .NET Compact Framework.

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

Supported by the .NET Compact Framework.

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

Public Methods

public methodContains Overloaded. Determines if the specified point is contained within this RectangleF structure.
public methodEquals

Supported by the .NET Compact Framework.

Overridden. Tests whether obj is a RectangleF with the same location and size of this RectangleF.
public methodstatic (Shared in Visual Basic)FromLTRB Creates a RectangleF structure with upper-left corner and lower-right corner at the specified locations.
public methodGetHashCode

Supported by the .NET Compact Framework.

Overridden. Gets the hash code for this RectangleF structure. For information about the use of hash codes, see Object.GetHashCode.
public methodGetType (inherited from Object)

Supported by the .NET Compact Framework.

Gets the Type of the current instance.
public methodInflate Overloaded. Inflates this RectangleF by the specified amount.
public methodIntersect Overloaded. Returns a RectangleF structure that represents the intersection of two rectangles. If there is no intersection, null is returned.
public methodIntersectsWith Determines if this rectangle intersects with rect.
public methodOffset Overloaded. Adjusts the location of this rectangle by the specified amount.
public methodToString

Supported by the .NET Compact Framework.

Overridden. Converts the Location and Size of this RectangleF to a human-readable string.
public methodstatic (Shared in Visual Basic)Union Creates the smallest possible third rectangle that can contain both of two rectangles that form a union.

Public Operators and Type Conversions

public operatorstatic (Shared in Visual Basic)Equality Operator

Supported by the .NET Compact Framework.

Tests whether two RectangleF structures have equal location and size.
public operatorstatic (Shared in Visual Basic)Inequality Operator

Supported by the .NET Compact Framework.

Tests whether two RectangleF structures differ in location or size.
public operatorstatic (Shared in Visual Basic)Rectangle to RectangleF Conversion

Supported by the .NET Compact Framework.

Converts the specified Rectangle to a RectangleF.

Protected Methods

protected methodFinalize (inherited from Object)

Supported by the .NET Compact Framework.

Overridden. Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.

In C# and C++, finalizers are expressed using destructor syntax.

protected methodMemberwiseClone (inherited from Object)

Supported by the .NET Compact Framework.

Creates a shallow copy of the current Object.

See Also

RectangleF Structure | System.Drawing Namespace

Show:
© 2016 Microsoft