Skip to main content

Description

A region is a set of rectangles positioned one under another in such a way that the top line of the lower rectangle is the bottom line of the upper one (so that the rectangles do not overlap).

Constructors

ConstructorDescription
Region Region()Creates an empty region.
Region Region( RectArray rectArray )Constructor from a value of type RectArray. Creates a region containing the rectangles from the rectArray array.

Operators

OperatorDescription
OrUnites two regions.
AndIntersects two regions; or a region and a rectangle. Returns a value of type Region.

Methods

MethodDescription
XCoordinate Left()Returns the left boundary of the region. Read-only property.
YCoordinate top()Returns the top boundary of the region. Read-only property.
XCoordinate Right()Returns the right boundary of the region. Read-only property.
YCoordinate Bottom()Returns the bottom boundary of the region. Read-only property.
Distance Width()Returns the width of the region. Read-only property.
Distance Height()Returns the height of the region. Read-only property.
Area Area()Returns the area of the region. Read-only property.
Void Inflate( Distance xDist, Distance yDist )Expands the region by xDist to the right and to the left, and by yDist upwards and downwards.
Rect Rect()Returns a copy of the rectangle circumscribing the region.