Search
RectangleI Members
Constructors Fields Properties Methods
 


Represents a rectangle with integer coordinates.

The following tables list the members exposed by the RectangleI type.

 Public Constructors

  Name Description

RectangleI

Initializes a new instance of the RectangleI struct.

 Public Fields

  Name Description

Zero

An empty rectangle.

 Public Properties

  Name Description

Bottom

Gets the y-coordinate of the bottom edge of the rectangle.

Height

Gets or sets the height of the rectangle.

IsEmpty

Gets a value indicating whether this instance is empty.

Left

Gets the x-coordinate of the left edge of the rectangle.

Right

Gets the x-coordinate of the right edge of the rectangle.

Top

Gets the y-coordinate of the top edge of the rectangle.

Width

Gets or sets the width of the rectangle.

X

Gets or sets the x-coordinate of the upper left corner of the rectangle.

Y

Gets or sets the y-coordinate of the upper left corner of the rectangle.

 Public Methods

  Name Description

Equals

Object.Equals override.

FromLTRB

Constructs a new RectangleI instance from the specified values.

GetHashCode

Object.GetHashCode override.

Offset

Offset the rectangle by the specified values.

ToString

Object.ToString override.

 See Also