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

# RectangleList

> RectangleList class providing methods to add, remove, and clear rectangular areas on document images in a Splitter Script activity.

Provides access to lists of rectangular areas on an image.

## Methods

| Name                                                       | Description                                                                                                                                                       |
| :--------------------------------------------------------- | :---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `Rectangle Add(int left, int top, int right, int bottom);` | Adds a rectangular area with the specified (left, top, right, bottom) boundaries to the region. Returns the added rectangle.                                      |
| `Rectangle Add(Rectangle rectangle);`                      | Adds the passed rectangle to the field region. Returns the added rectangle.                                                                                       |
| `bool Remove(Rectangle rectangle);`                        | Removes the passed rectangle from the field region rectangle list. Returns `true` if removed successfully and returns `false` otherwise.                          |
| `bool Remove(int rectangleIndex);`                         | Removes the rectangular area with the specified index from the field region rectangle list. Returns `true` if removed successfully and returns `false` otherwise. |
| `void Clear();`                                            | Removes all rectangular areas from the list.                                                                                                                      |
