# GC.Spread.Sheets.VerticalAlign

## Content

# Enumeration: VerticalAlign

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

Specifies the vertical alignment.

**`example`**
```javascript
//This example uses the VerticalAlign type.
var style = new GC.Spread.Sheets.Style();
style.font = "8pt Arial";
style.hAlign = GC.Spread.Sheets.HorizontalAlign.center;
style.vAlign = GC.Spread.Sheets.VerticalAlign.center;
activeSheet.setStyle(1,1,style,GC.Spread.Sheets.SheetArea.viewport);
activeSheet.getCell(1,1).value("B2");
```

## Table of contents

### Enumeration members

- [bottom](GC.Spread.Sheets.VerticalAlign#bottom)
- [center](GC.Spread.Sheets.VerticalAlign#center)
- [top](GC.Spread.Sheets.VerticalAlign#top)

## Enumeration members

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

• **bottom** = `2`

 Indicates that the cell content is bottom-aligned.

___

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

• **center** = `1`

 Indicates that the cell content is centered.

___

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

• **top** = `0`

 Indicates that the cell content is top-aligned.
