> ## 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 メソッド

> ABBYY FineReader Engine API の Region オブジェクトの AddRect メソッド — 領域に矩形領域を追加します。

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

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

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

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

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

<div id="parameters">
  ## パラメーター
</div>

Left

\[in] このパラメーターは、領域の左端の座標を指定します。

Top

\[in] このパラメーターは、領域の上端の座標を指定します。

Right

\[in] このパラメーターは、領域の右端の座標を指定します。

Bottom

\[in] このパラメーターは、領域の下端の座標を指定します。

<div id="return-values">
  ## 戻り値
</div>

このメソッドに固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

<div id="remarks">
  ## 注記
</div>

既存の矩形の間に新たな矩形を挿入すると、Regionの構造が予期せず変わる可能性があるため、Regionの矩形は上から下へ (または左から右へ) の順で追加することをお勧めします。

<div id="see-also">
  ## 関連項目
</div>

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