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

# Undo Method of the FRPage Object

<Warning>
  Visual Components are currently only supported for Windows.
</Warning>

This method undoes the latest command which was called from the FineReader Engine API. The command which was called with the help of one of the methods that can modify the page (for example, methods of the [FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage) or the [ImageDocument](/fine-reader/engine/api-reference/image-related-objects/imagedocument) object) can be undone only if it was previously added to the undo stack with the help of the [IFRPage::Update](/fine-reader/engine/api-reference/document-related-objects/frpage/update-method) method. The method can be executed if the value of the [IFRPage::CanUndo](/fine-reader/engine/api-reference/document-related-objects/frpage#canundo) property is TRUE.

## Syntax

### C++

```cpp theme={null}
HRESULT Undo();
```

### C\#

```csharp theme={null}
void Undo();
```

### Visual Basic .NET

```vb theme={null}
Sub Undo()
```

## Return values

This method has no specific return values. It returns the [standard return values of ABBYY FineReader Engine functions](/fine-reader/engine/api-reference/return-codes).

## See also

[FRPage](/fine-reader/engine/api-reference/document-related-objects/frpage)

[Redo](/fine-reader/engine/api-reference/document-related-objects/frpage/redo-method)

[Update](/fine-reader/engine/api-reference/document-related-objects/frpage/update-method)
