> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Region

> Set of non-overlapping stacked rectangles in the FlexiLayout language, with And and Or operators and methods for boundaries, area, and inflate.

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

| Constructor                            | Description                                                                                                      |
| :------------------------------------- | :--------------------------------------------------------------------------------------------------------------- |
| `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

| Operator | Description                                                                          |
| :------- | :----------------------------------------------------------------------------------- |
| `Or`     | Unites two regions.                                                                  |
| `And`    | Intersects two regions; or a region and a rectangle. Returns a value of type Region. |

## Methods

| Method                                           | Description                                                                                   |
| :----------------------------------------------- | :-------------------------------------------------------------------------------------------- |
| `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.                                    |
