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

# UndoCheckout Method of the DocumentDefinitions Object

This method switches the specified Document Definition and its invoice settings back from editing mode and discards all changes that were made.

## Syntax

```vb Visual Basic .NET theme={null}
Sub UndoCheckout(Value As DocumentDefinition)
```

```cpp C++ theme={null}
HRESULT UndoCheckout( IDocumentDefinition* Value );
```

## Parameters

**Value**

\[in] This parameter refers to a [**DocumentDefinition**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinition.md) object that will be switched back out of the editing mode and returned to the state it was in before the [**CheckOut**](https://docs.abbyy.com/flexi-capture/sdk/api-reference/documentdefinitions-checkout.md) method was called.

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

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