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

# MatchBlock Method of the Block Object

This method matches the block to the region.

## Syntax

```vb Visual Basic .NET theme={null}
Sub MatchBlock( _
  Region As Region, _
  Page As Page _
)
```

```cpp C++ theme={null}
HRESULT MatchBlock(
  IRegion* Region,
  IPage*   Page
);
```

## Parameters

**Region**

\[in] Refers to the [**Region**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/region.md) object, which specifies the new region of the block.

**Page**

\[in] Refers to the [**Page**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/page.md) object, which contains the page to place the region on. This parameter may be 0, in which case the new region of the block will be set on the same page where the block is located.

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

## Remarks

Matching the block to the region is not equivalent to setting the region of the block using the [**IBlock::Region**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/block.md#region) property.

## See also

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