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

<CardGroup cols={2}>
  <Card title="Rectangle" icon="square-dashed" href="/vantage/documentation/skill-designer/document/rule-verification/rectangle">
    A rectangular area on an image, with coordinates in pixels.
  </Card>

  <Card title="ImageRegion" icon="vector-square" href="/vantage/documentation/skill-designer/document/rule-verification/image-region">
    A single field region on an image, possibly composed of multiple rectangles.
  </Card>

  <Card title="ImageRegionList" icon="layer-group" href="/vantage/documentation/skill-designer/document/rule-verification/image-region-list">
    A collection of field regions on an image.
  </Card>

  <Card title="Object model" icon="diagram-project" href="/vantage/documentation/skill-designer/document/rule-verification/object-model">
    Full JavaScript object reference for use in Advanced Script Rules.
  </Card>
</CardGroup>
