# GC.Spread.Sheets.TextDecorationType

## Content

# Enumeration: TextDecorationType

[Spread](../modules/GC.Spread).[Sheets](../modules/GC.Spread.Sheets).TextDecorationType

Defines the type of the text decoration.

**`example`**
```javascript
//This example uses the TextDecorationType enumeration.
activeSheet.getCell(0, 0).textDecoration(GC.Spread.Sheets.TextDecorationType.underline);
activeSheet.getRange(1, -1, 1, -1).textDecoration(GC.Spread.Sheets.TextDecorationType.overline | GC.Spread.Sheets.TextDecorationType.underline);
activeSheet.getRange(-1, 1, -1, 1).textDecoration(GC.Spread.Sheets.TextDecorationType.overline | GC.Spread.Sheets.TextDecorationType.lineThrough | GC.Spread.Sheets.TextDecorationType.underline);
var style = new GC.Spread.Sheets.Style();
style.textDecoration = GC.Spread.Sheets.TextDecorationType.overline | GC.Spread.Sheets.TextDecorationType.underline;
activeSheet.setStyle(1, 1, style, GC.Spread.Sheets.SheetArea.viewport);
activeSheet.getCell(0, 0).value("Test");
activeSheet.getCell(1, 0).value("Test");
activeSheet.getCell(0, 1).value("Test");
```

## Table of contents

### Enumeration members

- [doubleUnderline](GC.Spread.Sheets.TextDecorationType#doubleunderline)
- [lineThrough](GC.Spread.Sheets.TextDecorationType#linethrough)
- [none](GC.Spread.Sheets.TextDecorationType#none)
- [overline](GC.Spread.Sheets.TextDecorationType#overline)
- [underline](GC.Spread.Sheets.TextDecorationType#underline)

## Enumeration members

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

• **doubleUnderline** = `8`

Specifies to display double line below the text.

___

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

• **lineThrough** = `2`

Specifies to display a line through the text.

___

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

• **none** = `0`

Specifies normal text.

___

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

• **overline** = `4`

Specifies to display a line above the text.

___

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

• **underline** = `1`

Specifies to display a line below the text.
