Click or drag to resize

Rectangle Properties

The Rectangle type exposes the following members.

Properties
  NameDescription
Public propertyBottom
Gets or sets the logical bottom of this rectangle (Y + Height if Height is positive, Y + 1 if negative)
Public propertyBottomLeft
Gets or sets the point at the Bottom and Left of the rectangle
Public propertyBottomRight
Gets or sets the point at the Bottom and Right of the rectangle
Public propertyCenter
Gets or sets the rectangle's center position
Public propertyEndLocation
Gets the ending location of this rectangle
Public propertyHeight
Gets or sets the Height of this rectangle
Public propertyInnerBottom
Gets or sets the bottom of the rectangle that is inside the bounds
Public propertyInnerBottomLeft
Gets or sets the point at the InnerBottom and Left of the rectangle
Public propertyInnerBottomRight
Gets or sets the point at the InnerBottom and InnerRight of the rectangle
Public propertyInnerRight
Gets or sets the right of the rectangle that is inside the bounds
Public propertyInnerTopRight
Gets or sets the point at the Top and InnerRight of the rectangle
Public propertyIsEmpty
Gets a value indicating that the Size of this rectangle is empty (either the width or height are zero)
Public propertyIsZero
Gets a value indicating that both the and Size of this rectangle are zero
Public propertyLeft
Gets or sets the logical left of this rectangle (X co-ordinate if Width is positive, X + Width if negative)
Public propertyLocation
Gets the location of this rectangle
Public propertyMiddleBottom
Gets or sets the point at the MiddleX and Bottom of the rectangle
Public propertyMiddleLeft
Gets or sets the point at the Left and MiddleY of the rectangle
Public propertyMiddleRight
Gets or sets the point at the Right and MiddleY of the rectangle
Public propertyMiddleTop
Gets or sets the point at the MiddleX and Top of the rectangle
Public propertyMiddleX
Gets or sets the rectangle's middle horizontal position
Public propertyMiddleY
Gets or sets the rectangle's middle vertical position
Public propertyRight
Gets or sets the logical right of this rectangle (X + Width if Width is positive, X + 1 if negative)
Public propertySize
Gets or sets the size of the rectangle
Public propertyTop
Gets or sets the logical top of this rectangle (Y co-ordinate if Height is positive, Y + Height if negative)
Public propertyTopLeft
Gets or sets the point at the Top and Left of the rectangle
Public propertyTopRight
Gets or sets the point at the Top and Right of the rectangle
Public propertyWidth
Gets or sets the Width of this rectangle
Public propertyX
Gets or sets the X co-ordinate of the Location of this rectangle
Public propertyY
Gets or sets the Y co-ordinate of the Location of this rectangle
Top
See Also