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

# SpellBlock Method of the TextValidator Object

> SpellBlock method of the TextValidator Object in ABBYY FineReader Engine Visual Components on Windows — This method starts spell checking in the specified block.

This method starts spell checking in the specified block.

## Syntax

### C++

```cpp theme={null}
HRESULT SpellBlock(
  int PageIndex,
  int BlockIndex
);
```

### C\#

```csharp theme={null}
void SpellBlock(
  int PageIndex,
  int BlockIndex
);
```

### Visual Basic .NET

```vb theme={null}
Sub SpellBlock( _
  PageIndex As Integer, _
  BlockIndex As Integer _
)
```

## Parameters

PageIndex

\[in] Contains the index of the page on which the block is located.

BlockIndex

\[in] Contains the index of the block for which spell checking is required. The index is in the [ILayout::VisualBlocks](/fine-reader/engine/api-reference/layout-related-objects/layout#visualblocks) collection.

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

[TextValidator](/fine-reader/engine/visual-components-reference/textvalidator)

[Spell](/fine-reader/engine/visual-components-reference/textvalidator/spell-method)
