RectangleF

Overview

RectangleF is a struct in Aspose.Psd FOSS for .NET. Inherits from: IEquatable<RectangleF>.

Stores a set of four floating-point numbers that represent the location and size of a rectangle.

This struct declares 5 methods for RectangleF objects in .NET programs. Available methods include: Equals, GetHashCode, RectangleF, ToString. Public members are accessible to any .NET application after installing the Aspose.Psd FOSS for .NET package. Properties: Bottom, Empty, Height, IsEmpty, Left, Right, and 4 more.

Properties

NameTypeAccessDescription
XfloatRead/WriteGets or sets the x-coordinate of the upper-left corner of this RectangleF.
YfloatRead/WriteGets or sets the y-coordinate of the upper-left corner of this RectangleF.
WidthfloatRead/WriteGets or sets the width of this RectangleF.
HeightfloatRead/WriteGets or sets the height of this RectangleF.
BottomfloatReadGets the y-coordinate of the bottom edge of this RectangleF.
IsEmptyboolReadGets a value indicating whether this RectangleF has no location or size.
LeftfloatReadGets the x-coordinate of the left edge of this RectangleF.
RightfloatReadGets the x-coordinate of the right edge of this RectangleF.
TopfloatReadGets the y-coordinate of the top edge of this RectangleF.
EmptyRectangleFReadRepresents a RectangleF structure with its properties left uninitialized.

Methods

SignatureDescription
RectangleF(x: float, y: float, width: float, height: float)Initializes a new instance of the RectangleF structure with the specified coordinates.
Equals(other: RectangleF)Determines whether the specified rectangle is equal to this rectangle.
Equals(obj: object?)Determines whether the specified object is equal to this rectangle.
GetHashCode()Returns a hash code for this rectangle.
ToString()Returns a compact coordinate representation.

See Also