# GC.Spread.Sheets.NameBox

## Content

# Namespace: NameBox

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

## Table of contents

### Classes

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

### Interfaces

- [INameBoxOptions](../interfaces/GC.Spread.Sheets.NameBox.INameBoxOptions)

### Functions

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

## Functions

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

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

通过宿主元素获取NameBox实例。

**`example`**
```
var spread = new GC.Spread.Sheets.Workbook("ss");
var nameBox = new GC.Spread.Sheets.NameBox.NameBox('nameBox');
nameBox.bind(spread);
var nameBoxInstance = GC.Spread.Sheets.NameBox.findControl('nameBox');
```

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `host` | `string` \| `HTMLElement` | 宿主元素或宿主元素id。 |

#### Returns

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

NameBox实例。
