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

# TextEditor オブジェクトの ActivateOn メソッド

> Windows 上の ABBYY FineReader Engine Visual Components における TextEditor オブジェクトの ActivateOn メソッド — このメソッドは、指定したブロック内の位置をアクティブにし、その位置が表示されるように移動します。

このメソッドは、指定したブロック内の位置をアクティブにし、その位置が表示されるように移動します。位置は、そのブロック内の単語中になければなりません。そうでない場合、位置は変更されません。

<div id="syntax">
  ## 構文
</div>

<div id="c">
  ### C++
</div>

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

### C\#

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

<div id="visual-basic-net">
  ### Visual Basic .NET
</div>

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

<div id="parameters">
  ## パラメーター
</div>

BlockIndex

\[in] アクティブにするブロックのインデックスを指定します。インデックスは [ILayout::VisualBlocks](/ja/fine-reader/engine/api-reference/layout-related-objects/layout#visualblocks) コレクション内のものです。

X

\[in] ブロック内の点の水平方向の座標をピクセル単位で指定します。座標はドキュメント画像を基準とします。

Y

\[in] ブロック内の点の垂直方向の座標をピクセル単位で指定します。座標はドキュメント画像を基準とします。

<div id="return-values">
  ## 戻り値
</div>

このメソッドに固有の戻り値はありません。[ABBYY FineReader Engine 関数の標準的な戻り値](/ja/fine-reader/engine/api-reference/return-codes)が返されます。

<div id="see-also">
  ## 関連項目
</div>

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