PEAR Manual
Prev |  | Next

# Worksheet::centerHorizontally

Worksheet::centerHorizontally -- Center the page horizontally.

## Synopsis

    require_once "Spreadsheet/Excel/Writer.php";

``void Worksheet::centerHorizontally` ([integer $center=1])`

## Description

Center the page horizontally.

## Parameter

- `integer $center` - the optional value for centering. Defaults to 1 (center).

## Note

This function can not be called statically.

## Example

Example 37-1. Using centerHorizontally()

Prev | Home | Next
Worksheet::setFooter | Up | Worksheet::centerVertically