# IndentBehavior

interface

Provides indentation behavior to [`IndentBlockCommand`](module_indent_indentblockcommand-IndentBlockCommand.md).

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-indent/src/indentcommandbehavior/indentbehavior.ts#L13)

<a id="properties">

## Properties

<a id="member-checkEnabled">

### `checkEnabled: ( indentAttributeValue: string ) => boolean`

Checks if the command should be enabled.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-indent/src/indentcommandbehavior/indentbehavior.ts#L23)

<a id="member-getNextIndent">

### `getNextIndent: ( indentAttributeValue: string ) => ( string | undefined )`

Returns a new indent attribute value based on the current indent. This method returns `undefined` when the indentation should be removed.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-indent/src/indentcommandbehavior/indentbehavior.ts#L29)

<a id="member-isForward">

### `isForward: boolean`

The direction of indentation.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-indent/src/indentcommandbehavior/indentbehavior.ts#L18)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
