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

# IsRectInRegion Method of the Region Object

This method checks if the supplied rectangle is inside the current region.

## Syntax

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

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

## Parameters

**left**

\[in] Specifies the coordinate of the left border of the rectangle, for which FlexiCapture SDK should check whether it is inside the current region.

**top**

\[in] Specifies the coordinate of the top border of the rectangle, for which FlexiCapture SDK should check whether it is inside the current region.

**right**

\[in] Specifies the coordinate of the right border of the rectangle, for which FlexiCapture SDK should check whether it is inside the current region.

**bottom**

\[in] Specifies the coordinate of the bottom border of the rectangle, for which FlexiCapture SDK should check whether it is inside the current region.

**result**

\[out, retval] A pointer to a **Boolean** variable that receives the result of checking. If the value is TRUE, the supplied rectangle is inside the current region.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

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