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

# GetSelectedBlocksIndices Method of the ImageViewer Object

> GetSelectedBlocksIndices method of the ImageViewer Object in ABBYY FineReader Engine Visual Components on Windows — This method returns the collection of indices of selected blocks.

This method returns the collection of indices of selected blocks.

## Syntax

### C++

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

### C\#

```csharp theme={null}
IIntsCollection GetSelectedBlocksIndices();
```

### Visual Basic .NET

```vb theme={null}
Function GetSelectedBlocksIndices() As IIntsCollection
```

## Parameters

indices

\[out, retval] Provides access to the [IntsCollection](/fine-reader/engine/api-reference/supplementary-objects-and-methods/intscollection) object which contains indices of the selected blocks.

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

[SetSelectedBlocksIndices](/fine-reader/engine/visual-components-reference/imageviewer/setselectedblocksindices-method)
