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

# Rearrange Method of the DocumentDefinition Object

The method rearranges data in the document window of a Document Definition. If you have changed the sections or fields of the Document Definition and intend to open it in ABBYY FlexiCapture, please call this method to ensure that the data form containing the information about sections and fields is displayed correctly in the graphical user interface.

> [!NOTE]
>
> The method is not supported for Invoice projects.

## Syntax

```vb Visual Basic .NET theme={null}
Sub Rearrange()
```

```cpp C++ theme={null}
HRESULT Rearrange();
```

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FlexiCapture SDK functions](https://docs.abbyy.com/flexi-capture/sdk/api-reference/errorcodes.md).

## See also

[**DocumentDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinition.md)
