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

> Provides access to lists of rectangle areas on an image.

`RectangleList` is a collection of rectangular areas on an image. Use it to add, remove, or clear rectangles in a region.

## Methods

### Add

```javascript theme={null}
Rectangle Add(int left, int top, int right, int bottom);
Rectangle Add(Rectangle rectangle);
```

Adds a rectangle to the list. Returns the added rectangle.

* The first overload creates a new rectangle from boundary coordinates.
* The second overload adds an existing rectangle.

### Remove

```javascript theme={null}
bool Remove(Rectangle rectangle);
bool Remove(int rectangleIndex);
```

Removes a rectangle from the list. Returns `true` if the rectangle was removed, `false` otherwise.

### Clear

```javascript theme={null}
void Clear();
```

Removes all rectangles from the list.

## Related topics

* [Rectangle](/vantage/documentation/skill-designer/document/rule-verification/rectangle)
* [ImageRegion](/vantage/documentation/skill-designer/document/rule-verification/image-region)
* [ImageRegionList](/vantage/documentation/skill-designer/document/rule-verification/image-region-list)
* [Object model](/vantage/documentation/skill-designer/document/rule-verification/object-model)
