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

> IsRectInRegion method of the Region Object in the ABBYY FineReader Engine API — Returns whether the specified rectangle is fully contained inside the region.

This method calculates whether the specified rectangle is contained inside the region. It receives coordinates of the rectangle as input parameters.

## Syntax

### C++

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

### Visual Basic .NET

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

## Parameters

Left

\[in] This parameter specifies coordinate of the left border of the rectangle.

Top

\[in] This parameter specifies coordinate of the top border of the rectangle.

Right

\[in] This parameter specifies coordinate of the right border of the rectangle.

Bottom

\[in] This parameter specifies coordinate of the bottom border of the rectangle.

Result

\[out, retval] This parameter receives the result of calculation. If it is TRUE, the specified rectangle lies inside the region.

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

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