# GC.Spread.Sheets.Touch.TouchToolStripSeparator

## Content

# Class: TouchToolStripSeparator

[Sheets](../modules/GC.Spread.Sheets).[Touch](../modules/GC.Spread.Sheets.Touch).TouchToolStripSeparator

## Table of contents

### Constructors

- [constructor](GC.Spread.Sheets.Touch.TouchToolStripSeparator#constructor)

### Methods

- [name](GC.Spread.Sheets.Touch.TouchToolStripSeparator#name)

## Constructors

### <a id="constructor" name="constructor"></a> constructor

• **new TouchToolStripSeparator**(`canExecute?`)

Represents a separator in the toolbar.

**`example`**
```javascript
spread.touchToolStrip.add(new GC.Spread.Sheets.Touch.TouchToolStripItem("Cut", "Delete", "cut.png", function(){ }))
spread.touchToolStrip.getItem("Cut").font("15px Arial").foreColor("red");
spread.touchToolStrip.add(new GC.Spread.Sheets.Touch.TouchToolStripSeparator());
```

#### Parameters

| Name | Type | Description |
| :------ | :------ | :------ |
| `canExecute?` | `Function` | Defines when to display the separator with a function. If returns `true`, display the separator; otherwise, hide the separator. |

## Methods

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

▸ **name**(): `string`

Gets the name of the separator.

#### Returns

`string`

Returns the current separator name.
