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

### C++

```cpp theme={null}
HRESULT AddRect(
  int Left,
  int Top,
  int Right,
  int Bottom
);
```

### C\#

```csharp theme={null}
void AddRect(
  int Left,
  int Top,
  int Right,
  int Bottom
);
```

### Visual Basic .NET

```vb theme={null}
Sub AddRect( _
  Left As Integer, _
  Top As Integer, _
  Right As Integer, _
  Bottom As Integer _
)
```

## Parameters

Left

\[in] This parameter specifies coordinate of the left border of the area.

Top

\[in] This parameter specifies coordinate of the top border of the area.

Right

\[in] This parameter specifies coordinate of the right border of the area.

Bottom

\[in] This parameter 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 FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## Remarks

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

## See also

[Region](/fine-reader/engine/api-reference/supplementary-objects-and-methods/region)
