PEAR Manual
Prev |  | Next

# Worksheet::setMargins

Worksheet::setMargins -- Set all the page margins to the same value in inches.

## Synopsis

    require_once "Spreadsheet/Excel/Writer.php";

``void Worksheet::setMargins` (float $margin)`

## Description

Set all the page margins to the same value in inches.

## Parameter

- `float $margin` - The margin to set in inches

## Note

This function can not be called statically.

## Example

Example 37-1. Using setMargins()

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