> ## 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 オブジェクトの IsRectInRegion メソッド

> ABBYY FineReader Engine API の Region オブジェクトの IsRectInRegion メソッド。指定した長方形が Region 内に完全に含まれているかどうかを返します。

このメソッドは、指定した長方形がこの Region 内に含まれているかどうかを判定します。長方形の座標を入力パラメーターとして受け取ります。

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

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

```cpp theme={null}
HRESULT IsRectInRegion(
  int           Left,
  int           Top,
  int           Right,
  int           Bottom,
  VARIANT_BOOL* Result
);
```

### C\#

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

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

```vb theme={null}
Function IsRectInRegion( _
  Left As Integer, _
  Top As Integer, _
  Right As Integer, _
  Bottom As Integer _
) As Boolean
```

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

Left

\[in] このパラメーターは、長方形の左辺の座標を指定します。

Top

\[in] このパラメーターは、長方形の上辺の座標を指定します。

Right

\[in] このパラメーターは、長方形の右辺の座標を指定します。

Bottom

\[in] このパラメーターは、長方形の下辺の座標を指定します。

Result

\[out, retval] このパラメーターは計算結果を受け取ります。TRUE の場合、指定した長方形はその region 内にあります。

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

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

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

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