Table of Contents

Struct RectangleF

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Stores the location and size of a rectangular region.

public struct RectangleF : IEquatable<RectangleF>
Implements
Inherited Members

Constructors

RectangleF(float, float, float, float)

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

RectangleF(PointF, SizeF)

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

Fields

Empty

Initializes a new instance of the RectangleF class.

Properties

Bottom

Gets the y-coordinate of the lower-right corner of the rectangular region defined by this RectangleF.

Height

Gets or sets the height of the rectangular region defined by this RectangleF.

IsEmpty

Tests whether this RectangleF has a Width or a Height of 0.

Left

Gets the x-coordinate of the upper-left corner of the rectangular region defined by this RectangleF .

Location

Gets or sets the coordinates of the upper-left corner of the rectangular region represented by this RectangleF.

Right

Gets the x-coordinate of the lower-right corner of the rectangular region defined by this RectangleF.

Size

Gets or sets the size of this RectangleF.

Top

Gets the y-coordinate of the upper-left corner of the rectangular region defined by this RectangleF.

Width

Gets or sets the width of the rectangular region defined by this RectangleF.

X

Gets or sets the x-coordinate of the upper-left corner of the rectangular region defined by this RectangleF.

Y

Gets or sets the y-coordinate of the upper-left corner of the rectangular region defined by this RectangleF.

Methods

Contains(float, float)

Determines if the specified point is contained within the rectangular region defined by this Rect .

Contains(PointF)

Determines if the specified point is contained within the rectangular region defined by this Rect .

Contains(RectangleF)

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

Equals(object)

Tests whether obj is a RectangleF with the same location and size of this RectangleF.

Equals(RectangleF)

Returns true if two RectangleF objects have equal location and size.

FromLTRB(float, float, float, float)

Creates a new RectangleF with the specified location and size.

GetHashCode()

Gets the hash code for this RectangleF.

Inflate(float, float)

Inflates this Rect by the specified amount.

Inflate(RectangleF, float, float)

Creates a Rect that is inflated by the specified amount.

Inflate(SizeF)

Inflates this Rect by the specified amount.

Intersect(RectangleF)

Creates a Rectangle that represents the intersection between this Rectangle and rect.

Intersect(RectangleF, RectangleF)

Creates a rectangle that represents the intersection between a and b. If there is no intersection, an empty rectangle is returned.

IntersectsWith(RectangleF)

Determines if this rectangle intersects with rect.

Offset(float, float)

Adjusts the location of this rectangle by the specified amount.

Offset(PointF)

Adjusts the location of this rectangle by the specified amount.

ToString()

Converts the Location and Size of this RectangleF to a human-readable string.

Union(RectangleF, RectangleF)

Creates a rectangle that represents the union between a and b.

Operators

operator ==(RectangleF, RectangleF)

Tests whether two RectangleF objects have equal location and size.

implicit operator RectangleF(Rect)

Converts the specified Rect to a RectangleF.

operator !=(RectangleF, RectangleF)

Tests whether two RectangleF objects differ in location or size.