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

# ActivateOn Method of the TextEditor Object

> ActivateOn method of the TextEditor Object in ABBYY FineReader Engine Visual Components on Windows — This method activates a position in the specified block and moves it into view.

This method activates a position in the specified block and moves it into view. The position must be in a word in the block. Otherwise, the position is not changed.

## Syntax

### C++

```cpp theme={null}
HRESULT ActivateOn(
  int BlockIndex,
  int X,
  int Y
);
```

### C\#

```csharp theme={null}
void ActivateOn(
  int BlockIndex,
  int X,
  int Y
);
```

### Visual Basic .NET

```vb theme={null}
Sub ActivateOn( _
  BlockIndex As Integer, _
  X As Integer, _
  Y As Integer _
)
```

## Parameters

BlockIndex

\[in] Contains the index of the block to be activated. The index is in the [ILayout::VisualBlocks](/fine-reader/engine/api-reference/layout-related-objects/layout#visualblocks) collection.

X

\[in] Contains the horizontal coordinate of a point in the block in pixels. The coordinates are relative to the document image.

Y

\[in] Contains the vertical coordinate of a point in the block in pixels. The coordinates are relative to the document image.

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

[TextEditor](/fine-reader/engine/visual-components-reference/texteditor)
