---
title: horizontallyCentered
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nsprintinfo/attributekey/horizontallycentered
---

# horizontallyCentered

An NSNumber object containing a Boolean value that specifies whether to horizontally center pages.

## Declaration

```swift
static let horizontallyCentered: NSPrintInfo.AttributeKey
```

## Discussion

Discussion If true, pages are centered horizontally.

## See Also

### Pagination Attributes

- [leftMargin](appkit/nsprintinfo/attributekey/leftmargin.md)
- [rightMargin](appkit/nsprintinfo/attributekey/rightmargin.md)
- [topMargin](appkit/nsprintinfo/attributekey/topmargin.md)
- [bottomMargin](appkit/nsprintinfo/attributekey/bottommargin.md)
- [verticallyCentered](appkit/nsprintinfo/attributekey/verticallycentered.md)
- [horizontalPagination](appkit/nsprintinfo/attributekey/horizontalpagination.md)
- [verticalPagination](appkit/nsprintinfo/attributekey/verticalpagination.md)
