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

# SetSelectedBlocksIndices Method of the ImageViewer Object

> SetSelectedBlocksIndices method of the ImageViewer Object in ABBYY FineReader Engine Visual Components on Windows — This method allows you to set blocks selection.

This method allows you to set blocks selection.

## Syntax

### C++

```cpp theme={null}
HRESULT SetSelectedBlocksIndices( IIntsCollection* indices );
```

### C\#

```csharp theme={null}
void SetSelectedBlocksIndices( IIntsCollection indices );
```

### Visual Basic .NET

```vb theme={null}
Sub SetSelectedBlocksIndices(indices As IntsCollection)
```

## Parameters

indices

\[in] Refers to the [IntsCollection](/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection) object that contains the set of indices of the blocks to be selected.

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

[ImageViewer](/fine-reader/engine/visual-components-reference/imageviewer)

[GetSelectedBlocksIndices](/fine-reader/engine/visual-components-reference/imageviewer/getselectedblocksindices-method)
