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

# IsPointInRegion Method of the Region Object

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

## Syntax

```vb Visual Basic .NET theme={null}
Function IsPointInRegion( _
  x As Integer, _
  y As Integer, _
) As Boolean
```

```cpp C++ theme={null}
HRESULT IsPointInRegion(
  int           x,
  int           y,
  VARIANT_BOOL* result
);
```

## Parameters

**x**

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

**y**

\[in] Specifies the vertical coordinate of the point, 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 point 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)
