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

# Pages オブジェクトの Attach メソッド

このメソッドを使用すると、指定したページを別のドキュメントへ移動できます。

## 構文

```vb Visual Basic .NET theme={null}
Sub Attach( _
  page As Page, _
  position As Integer _
)
```

```cpp C++ theme={null}
HRESULT Attach(
  IPage* page,
  int    position
);
```

## パラメーター

**page**

\[in] 移動するページを参照する変数です。

**position**

\[in] ページの移動先の位置を示すインデックスです。0 から [**IPages::Count**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/pages.md) プロパティの値までの範囲で指定する必要があります。

## 戻り値

このメソッドには固有の戻り値はありません。[ABBYY FlexiCapture SDK 関数の標準の戻り値](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/errorcodes.md)を返します。

## 関連項目

[**Pages**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/pages.md)
