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

# YCoordinateArray

> Array of YCoordinate values for rectangle positions in the FlexiLayout language, with methods to add, delete, shift, and access elements.

The array of Y coordinates of the rectangles.

## Constructors

| Constructor                           | Description                                                                   |
| :------------------------------------ | :---------------------------------------------------------------------------- |
| `YCoordinateArray YCoordinateArray()` | Constructor. Creates an empty array of rectangles specified by Y coordinates. |

## Methods

| Method                                    | Description                                                                     |
| :---------------------------------------- | :------------------------------------------------------------------------------ |
| `Void Add( YCoordinate )`                 | Adds a rectangle to the end of the array.                                       |
| `Void Add( YCoordinateArray )`            | Adds another array to the end of the array.                                     |
| `Void InsertAt( Int index, YCoordinate )` | Adds a rectangle to position index.                                             |
| `Void DeleteAll()`                        | Deletes all elements of the array.                                              |
| `Void DeleteAt( Int index )`              | Deletes the element in position index.                                          |
| `YCoordinate GetAt( Int index )`          | Returns the element with the specified index.                                   |
| `Int Count()`                             | Returns the number of elements in the array.                                    |
| `Void ShiftDown( Int index, Distance )`   | Shift downward (increase) the coordinate of the specified element in the array. |
| `Void ShiftUp( Int index, Distance )`     | Shift upward (decrease) the coordinate of the specified element in the array.   |
| `Void ShiftDown( Distance )`              | Shift downward (increase) all elements in the array.                            |
| `Void ShiftUp( Distance )`                | Shift upward (decrease) all elements in the array.                              |
