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

# Region オブジェクトの AddRect メソッド

このメソッドは、領域に矩形領域を追加します。

## 構文

```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
);
```

## パラメーター

**left**

\[in] 領域の左端の座標を指定します。

**top**

\[in] 領域の上端の座標を指定します。

**right**

\[in] 領域の右端の座標を指定します。

**bottom**

\[in] 領域の下端の座標を指定します。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 備考

領域に矩形を追加する場合は、上から下の順に追加することをお勧めします。既存の矩形の間に矩形を挿入すると、領域の構造が予期しない形で変化する可能性があります。

## 関連項目

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