> ## 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 オブジェクトの CenterOnDocumentPoint メソッド

> Windows 上の ABBYY FineReader Engine Visual Components における TextEditor オブジェクトの CenterOnDocumentPoint メソッド — このメソッドは、指定した点がビューの中央に配置されるようにテキスト ビューをスクロールします。

このメソッドは、指定した点がビューの中央に来るようにテキスト ビューをスクロールします。

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

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

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

### C\#

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

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

```vb theme={null}
Sub CenterOnDocumentPoint(X As Integer, Y As Integer)
```

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

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)
