PEAR Manual
Prev |  | Next

# Format::setColor

Format::setColor -- Sets the color of a cell's content

## Synopsis

    require_once "Spreadsheet/Excel/Writer.php";

``void Format::setColor` (mixed $color)`

## Description

Sets the color of a cell's content

## Parameter

- mixed `$color` - either a string (like 'blue'), or an integer (range is [8...63]).

  Please see the "Using colors" section of the manual for more information.

## Note

This function can not be called statically.

## Example

Example 37-1. Using setColor()

## See

setFgColor(), setBgColor()

Prev | Home | Next
Format::setBgColor | Up | Format::setPattern