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

# AddRect Method of the Region Object

This method adds an area to the region.

## Syntax

```vb Visual Basic .NET theme={null}
Sub AddRect( _
  left As Integer, _
  top As Integer, _
  right As Integer, _
  bottom As Integer _
)
```

```cpp C++ theme={null}
HRESULT AddRect(
  int left,
  int top,
  int right,
  int bottom
);
```

## Parameters

**left**

\[in] Specifies coordinate of the left border of the area.

**top**

\[in] Specifies coordinate of the top border of the area.

**right**

\[in] Specifies coordinate of the right border of the area.

**bottom**

\[in] Specifies coordinate of the bottom border of the area.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## Remarks

We recommend you to add rectangles of the region in top to bottom order, because if a rectangle is inserted between the existing ones, it may change the region structure unpredictably.

## See also

[**Region**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/region.md)
