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

このメソッドを使用すると、コレクション内のページを移動できます。

## 構文

```vb Visual Basic .NET theme={null}
Sub MoveById( _
  Id As Integer, _
  NewIndex As Integer _
)
```

```cpp C++ theme={null}
HRESULT MoveById(
  int  Id,
  int  NewIndex
);
```

## パラメーター

**Id**

\[in] 移動するページの識別子を格納する変数です。識別子は、[**IPage::Id**](https://docs.abbyy.com/ja/flexi-capture/sdk/api-reference/page.md) プロパティの値として取得する必要があります。

**NewIndex**

\[in] ページは、このインデックスのページの**前**に配置されます。1 から [**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)
