> ## 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.

# RectArray

> Array of Rect values in the FlexiLayout language with methods to add, access, and convert the array to a Region or a circumscribing Rect.

Array of rectangles.

## Constructors

| Constructor                            | Description                                                                                           |
| :------------------------------------- | :---------------------------------------------------------------------------------------------------- |
| `RectArray RectArray ()`               | Creates an empty array of rectangles.                                                                 |
| `RectArray RectArray( Rect rect )`     | Constructor with parameter Rect. Creates an array consisting of one rectangle equal to the rect rect. |
| `RectArray RectArray( Region region )` | Constructor with parameter Region. Creates an array consisting of rectangles of the region region.    |

## Methods

| Method                        | Description                                                  |
| :---------------------------- | :----------------------------------------------------------- |
| `Int Count()`                 | Returns the number of array elements.                        |
| `Region Region()`             | Continuous region from an array of rectangles.               |
| `Rect Rect()`                 | Rectangle circumscribing an array of rectangles.             |
| `Rect GetAt( Int )`           | Returns the item at the specified index.                     |
| `Rect Rect( Int )`            | Same as the Rect GetAt( Int ) method, obsolete syntax.       |
| `Void Add( Rect rect )`       | Adds a rect rectangle to an array of rectangles.             |
| `Void Add( RectArray array )` | Adds an array array of rectangles to an array of rectangles. |
