# GC.Spread.Sheets.LabelAlignment

## Content

# Enumeration: LabelAlignment

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

Specifies the cell label position.

**`example`**
```
//This example sets cell padding, alignment, and other options.
var type = new GC.Spread.Sheets.Style();
type.watermark = "User name";
type.cellPadding = "20";
type.labelOptions = {alignment:GC.Spread.Sheets.LabelAlignment.topLeft, visibility: GC.Spread.Sheets.LabelVisibility.visible};
activeSheet.setStyle(0, 1, type);
activeSheet.getRange(0, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).height(60);
activeSheet.getRange(-1, 1, -1, 1).width(150);
var combo = new GC.Spread.Sheets.CellTypes.ComboBox();
combo.items([{ text: "Oranges", value: "11k" }, { text: "Apples", value: "15k" }, { text: "Grape", value: "100k" }]);
combo.editorValueType(GC.Spread.Sheets.CellTypes.EditorValueType.text);
activeSheet.setCellType(2, 1, combo, GC.Spread.Sheets.SheetArea.viewport);
activeSheet.getCell(2, 1, GC.Spread.Sheets.SheetArea.viewport).watermark("ComboBox Cell Type").cellPadding('10 10 20 10');
activeSheet.getCell(2, 1, GC.Spread.Sheets.SheetArea.viewport).labelOptions({alignment: GC.Spread.Sheets.LabelAlignment.bottomCenter, foreColor: 'yellowgreen', font: 'bold 15px Arial'});
activeSheet.getRange(2, -1, 1, -1, GC.Spread.Sheets.SheetArea.viewport).height(60);
```

## Table of contents

### Enumeration members

- [bottomCenter](GC.Spread.Sheets.LabelAlignment#bottomcenter)
- [bottomLeft](GC.Spread.Sheets.LabelAlignment#bottomleft)
- [bottomRight](GC.Spread.Sheets.LabelAlignment#bottomright)
- [topCenter](GC.Spread.Sheets.LabelAlignment#topcenter)
- [topLeft](GC.Spread.Sheets.LabelAlignment#topleft)
- [topRight](GC.Spread.Sheets.LabelAlignment#topright)

## Enumeration members

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

• **bottomCenter** = `4`

 Indicates that the cell label position is bottom-center.

___

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

• **bottomLeft** = `3`

 Indicates that the cell label position is bottom-left.

___

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

• **bottomRight** = `5`

 Indicates that the cell label position is bottom-right.

___

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

• **topCenter** = `1`

 Indicates that the cell label position is top-center.

___

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

• **topLeft** = `0`

 Indicates that the cell label position is top-left.

___

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

• **topRight** = `2`

 Indicates that the cell label position is top-right.
