GxRect

Assembly: Drawing;

Description

The GxRect class implements the rectangle with the integer sizes.

Constructors

  Constructor name Brief description
Create The Create constructor creates a new rectangle with the specified sizes.
CreateFromEdges The CreateFromEdges constructor creates a new rectangle calculating its sizes and position in accordance with the specified angular points.
CreateFromOrigin The CreateFromOrigin constructor creates a new rectangle in accordance with the specified position and size.
CreateFromRect The CreateFromRect constructor creates a new rectangle from the specified rectangle.

Class object properties inherited from IGxRect

  Property name Brief description
Bottom The Bottom property determines the Y axis coordinate for the rectangle's bottom side.
Height The Height property determines the height of the integer rectangle.
IsEmpty The IsEmpty property determines whether the rectangle is empty.
Left The Left property determines the X axis coordinate for the rectangle's left side.
Right The Right property determines the X axis coordinate for the rectangle's right side.
Size The Size property determines the size of the integer rectangle.
Top The Top property determines the Y axis coordinate for the rectangle's top side.
Width The Width property determines the width of the integer rectangle.

Class object methods inherited from IGxRect

  Method name Brief description
Contains The Contains method checks if the current rectangle contains the point with the specified coordinates.
ContainsP The ContainsP method checks if the current rectangle contains the point.
ContainsR The ContainsR method checks if the current rectangle contains the rectangle.
Deflate The Deflate method decreases integer rectangle size by the specified width and height values.
DeflateS The DeflateS method decreases integer rectangle size by the specified size.
Equals The Equals method checks if the current integer rectangle is equal to the rectangle passed by the input parameter.
Inflate The Inflate method increases integer rectangle size by the specified width and height values.
InflateS The InflateS method increases the integer rectangle by the specified size.
Intersect The Intersect method returns the rectangle that is the result of intersection of the current rectangle and the rectangle passed as input parameter.
IntersectsWith The IntersectsWith method checks if the current rectangle intersects with the rectangle passed as input parameter.
Offset The Offset method offsets the rectangle by the specified values along the X and Y axes.
OffsetP The OffsetP method offsets the integer rectangle by values of coordinates of the point passed by the input parameter.
OffsetS The OffsetS method offsets the integer rectangle by the size passed by the input parameter.
ToRectF The ToRectF method transforms the integer rectangle into the real rectangle.

See also:

Drawing Assembly Classes