# GC.Spread.Sheets.FormulaPanel.Commands

## Content

# Namespace: Commands

[Sheets](GC.Spread.Sheets).[FormulaPanel](GC.Spread.Sheets.FormulaPanel).Commands

## Table of contents

### Variables

- [closeHints](GC.Spread.Sheets.FormulaPanel.Commands#closehints)
- [commitContentToActiveCell](GC.Spread.Sheets.FormulaPanel.Commands#commitcontenttoactivecell)
- [exitEdit](GC.Spread.Sheets.FormulaPanel.Commands#exitedit)
- [formatDocument](GC.Spread.Sheets.FormulaPanel.Commands#formatdocument)
- [showHints](GC.Spread.Sheets.FormulaPanel.Commands#showhints)
- [toggleAbsoluteRelativeReferences](GC.Spread.Sheets.FormulaPanel.Commands#toggleabsoluterelativereferences)

## Variables

### <a id="closehints" name="closehints"></a> closeHints

• **closeHints**: `Object`

Represents the command used to close hints.

**`property`** {function} execute - performs an execute operation.

**`example`**
```
//This example showing binding the closeHints command to the esc shortcut.
spread.commandManager().setShortcutKey("closeHints", 27);
```

#### Type declaration

| Name | Type |
| :------ | :------ |
| `execute` | (`context`: [`FormulaEditor`](../classes/GC.Spread.Sheets.FormulaPanel.FormulaEditor)) => `any` |

___

### <a id="commitcontenttoactivecell" name="commitcontenttoactivecell"></a> commitContentToActiveCell

• **commitContentToActiveCell**: `Object`

Represents the command used to commit content to active cell.

**`property`** {function} execute - performs an execute operation.

**`example`**
```
//This example showing binding the commitContentToActiveCell command to the ctrl-s shortcut.
spread.commandManager().setShortcutKey("commitContentToActiveCell", 83, true);
```

#### Type declaration

| Name | Type |
| :------ | :------ |
| `execute` | (`context`: [`FormulaEditor`](../classes/GC.Spread.Sheets.FormulaPanel.FormulaEditor)) => `any` |

___

### <a id="exitedit" name="exitedit"></a> exitEdit

• **exitEdit**: `Object`

Represents the command used to exit edit.

**`property`** {function} execute - performs an execute operation.

**`example`**
```
//This example showing binding the exitEdit command to the esc shortcut.
spread.commandManager().setShortcutKey("exitEdit", 27);
```

#### Type declaration

| Name | Type |
| :------ | :------ |
| `execute` | (`context`: [`FormulaEditor`](../classes/GC.Spread.Sheets.FormulaPanel.FormulaEditor)) => `any` |

___

### <a id="formatdocument" name="formatdocument"></a> formatDocument

• **formatDocument**: `Object`

Represents the command used to format document.

**`property`** {function} execute - performs an execute operation.

**`example`**
```
//This example showing binding the formatDocument command to the alt-shift-f shortcut.
spread.commandManager().setShortcutKey("formatDocument", 70, false, true, true);
```

#### Type declaration

| Name | Type |
| :------ | :------ |
| `execute` | (`context`: [`FormulaEditor`](../classes/GC.Spread.Sheets.FormulaPanel.FormulaEditor)) => `any` |

___

### <a id="showhints" name="showhints"></a> showHints

• **showHints**: `Object`

Represents the command used to show hints.

**`property`** {function} execute - performs an execute operation.

**`example`**
```
//This example showing binding the showHints command to the ctrl-shift-whitespace shortcut.
spread.commandManager().setShortcutKey("showHints", 32, true, true);
```

#### Type declaration

| Name | Type |
| :------ | :------ |
| `execute` | (`context`: [`FormulaEditor`](../classes/GC.Spread.Sheets.FormulaPanel.FormulaEditor)) => `any` |

___

### <a id="toggleabsoluterelativereferences" name="toggleabsoluterelativereferences"></a> toggleAbsoluteRelativeReferences

• **toggleAbsoluteRelativeReferences**: `Object`

Represents the command used to toggle absolute/relative references.

**`property`** {function} execute - performs an execute operation.

**`example`**
```
//This example showing binding the toggleAbsoluteRelativeReferences command to the f4 shortcut.
spread.commandManager().setShortcutKey("toggleAbsoluteRelativeReferences", 115);
```

#### Type declaration

| Name | Type |
| :------ | :------ |
| `execute` | (`context`: [`FormulaEditor`](../classes/GC.Spread.Sheets.FormulaPanel.FormulaEditor)) => `any` |
