> ## 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 calculates whether the specified point is inside the region. It receives coordinates of the point as input parameters.

## Syntax

### C++

```cpp theme={null}
HRESULT IsPointInRegion(
  int           X,
  int           Y,
  VARIANT_BOOL* Result
);
```

### C\#

```csharp theme={null}
bool IsPointInRegion(
  int X,
  int Y
);
```

### Visual Basic .NET

```vb theme={null}
Function IsPointInRegion( _
  X As Integer, _
  Y As Integer _
) As Boolean
```

## Parameters

X

\[in] This parameter specifies the horizontal coordinate of the point.

Y

\[in] This parameter specifies the vertical coordinate of the point.

Result

\[out, retval] This parameter receives the result of calculation. If it is TRUE, the specified point 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)
