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

> ABBYY FineReader Engine API の Region オブジェクトの HasIntersectionWithRect メソッド — 領域が指定された Rectangle と交差しているかどうかを返します。

このメソッドは、領域が指定されたRectangleと交差しているかどうかを判定します。Rectangleの座標を入力パラメーターとして受け取ります。

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

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

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

### C\#

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

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

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

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

Left

\[in] このパラメーターは、交差判定の対象となるRectangleの左辺の座標を指定します。

Top

\[in] このパラメーターは、交差判定の対象となるRectangleの上辺の座標を指定します。

Right

\[in] このパラメーターは、交差判定の対象となるRectangleの右辺の座標を指定します。

Bottom

\[in] このパラメーターは、交差判定の対象となるRectangleの下辺の座標を指定します。

Result

\[out, retval] このパラメーターには計算結果が返されます。TRUE の場合、指定したRectangleと領域は交差します。

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