# GC.Spread.Sheets.Print.PrintCentering

## Content

# Enumeration: PrintCentering

[Sheets](../modules/GC.Spread.Sheets).[Print](../modules/GC.Spread.Sheets.Print).PrintCentering

Specifics the type of centering for the printed page.

**`example`**
```
var printInfo = new GC.Spread.Sheets.Print.PrintInfo();
printInfo.columnStart(0);
printInfo.columnEnd(2);
printInfo.centering(GC.Spread.Sheets.Print.PrintCentering.horizontal);
activeSheet.printInfo(printInfo);
spread.print(0);
```

## Table of contents

### Enumeration members

- [both](GC.Spread.Sheets.Print.PrintCentering#both)
- [horizontal](GC.Spread.Sheets.Print.PrintCentering#horizontal)
- [none](GC.Spread.Sheets.Print.PrintCentering#none)
- [vertical](GC.Spread.Sheets.Print.PrintCentering#vertical)

## Enumeration members

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

• **both** = `3`

Centers the printed layout both horizontally and vertically on the page.

___

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

• **horizontal** = `1`

Centers the printed layout horizontally on the page.

___

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

• **none** = `0`

Does not center the printed page at all.

___

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

• **vertical** = `2`

Centers the printed layout vertically on the page.
