# GC.Spread.Sheets.HorizontalPosition

## Content

# Enumeration: HorizontalPosition

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

Specifies the horizontal position of the cell or column in the component.

**`example`**
```
//This example uses the HorizontalPosition enumeration.
activeSheet.setActiveCell(10,5);
activeSheet.showCell(10, 5, GC.Spread.Sheets.VerticalPosition.top, GC.Spread.Sheets.HorizontalPosition.center);
```

## Table of contents

### Enumeration members

- [center](GC.Spread.Sheets.HorizontalPosition#center)
- [left](GC.Spread.Sheets.HorizontalPosition#left)
- [nearest](GC.Spread.Sheets.HorizontalPosition#nearest)
- [right](GC.Spread.Sheets.HorizontalPosition#right)

## Enumeration members

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

• **center** = `1`

 Positions the cell or column in the center.

___

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

• **left** = `0`

 Positions the cell or column to the left.

___

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

• **nearest** = `3`

 Positions the cell or column to the nearest edge.

___

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

• **right** = `2`

 Positions the cell or column to the right.
