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

このメソッドは、指定した矩形と現在の領域との間に重複領域があるかどうかを確認します。

## 構文

```vb Visual Basic .NET theme={null}
Function HasIntersectionWithRect( _
  left As Integer, _
  top As Integer, _
  right As Integer, _
  bottom As Integer, _
) As Boolean
```

```cpp C++ theme={null}
HRESULT HasIntersectionWithRect(
  int           left,
  int           top,
  int           right,
  int           bottom,
  VARIANT_BOOL* result
);
```

## パラメーター

**left**

\[in] 現在の領域との重複領域の有無を FlexiCapture SDK がチェックする矩形の、左端の座標を指定します。

**top**

\[in] 現在の領域との重複領域の有無を FlexiCapture SDK がチェックする矩形の、上端の座標を指定します。

**right**

\[in] 現在の領域との重複領域の有無を FlexiCapture SDK がチェックする矩形の、右端の座標を指定します。

**bottom**

\[in] 現在の領域との重複領域の有無を FlexiCapture SDK がチェックする矩形の、下端の座標を指定します。

**result**

\[out, retval] チェック結果を受け取る**ブール型**変数へのポインター。値が TRUE の場合、指定された矩形は現在の領域と重複しています。

## 戻り値

このメソッドには固有の戻り値はありません。[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)
