Workbook::&addWorksheet (Previous) (Next) Workbook::&setTempDir

View this page in Last updated: Sun, 07 Sep 2008
English | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Plain HTML

Workbook::&addFormat

Workbook::&addFormat -- Ajoute un nouveau format au manuel de travail Excel

Description

Ajoute un nouveau format au manuel de travail Excel. Passe également toutes les propriétés au constructeur du format. Les propriétés valides sont :

  • Align

  • Bold

  • Bottom

  • Top

  • Left

  • Right

  • Border

  • BorderColor

  • BottomColor

  • TopColor

  • RightColor

  • LeftColor

  • FgColor

  • BgColor

  • Color

  • Pattern

  • Underline

  • TextRotation

  • Size

  • NumFormat

  • Script

Paramètres

  • array $properties - tableau contenant les propriétés pour l'initialisation du format.

Valeur retournée

Retourne un objet de référence d'un format Excel.

Note

Cette fonction ne peut pas être appelée de façon statique.

Workbook::&addWorksheet (Previous) (Next) Workbook::&setTempDir

Download Documentation Last updated: Sun, 07 Sep 2008
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
Note by: alex@angelov.co.uk
You can also set the 'locked' format property using &addFormat(). This can be done in the same way like 'bold' by assigning to 'locked' a value of 1.
$format =& $workbook->addFormat(array('locked' => 1));
Note by: Elliott Brueggeman
Properties that don't have obvious arguments, such as bold and underline, require a value of 1 in the array to make them function properly.

Example:

(to make a format bold and underlined)

$myFormat=&$workbook->addFormat(
array('bold'=>1,
'underline'=>1 ));