# GC.Spread.Sheets.FormulaTextBox

## Content

# Namespace: FormulaTextBox

[Spread](GC.Spread).[Sheets](GC.Spread.Sheets).FormulaTextBox

## Table of contents

### Classes

- [FormulaTextBox](../classes/GC.Spread.Sheets.FormulaTextBox.FormulaTextBox)

### Interfaces

- [IFormulaTextBoxOptions](../interfaces/GC.Spread.Sheets.FormulaTextBox.IFormulaTextBoxOptions)

### Functions

- [findControl](GC.Spread.Sheets.FormulaTextBox#findcontrol)

## Functions

### <a id="findcontrol" name="findcontrol"></a> findControl

▸ **findControl**(`host`): [`FormulaTextBox`](../classes/GC.Spread.Sheets.FormulaTextBox.FormulaTextBox)

Gets the FormulaTextBox instance by the host element.

**`example`**
```
window.onload = function(){
     var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 1 });
     var rangeSelector = new GC.Spread.Sheets.FormulaTextBox.FormulaTextBox(document.getElementById("ftb"), {rangeSelectMode: true});
     rangeSelector.workbook(spread);
     var rangeSelectorInstance = GC.Spread.Sheets.FormulaTextBox.findControl("ftb");
}
```

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `host` | `string` \| `HTMLElement` | The host element or the host element id. |

#### Returns

[`FormulaTextBox`](../classes/GC.Spread.Sheets.FormulaTextBox.FormulaTextBox)

The FormulaTextBox instance.
