void Format::setVAlign (
string $location
)
Définit l'alignement de la cellule. Cette méthode est une alternative à la méthode setAlign().
string $location - alignement de la cellule.
top, vcenter, bottom, vjustify, vequal_space.
This function can not be called statically.
Exemple avec setVAlign()
<?php
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer();
$worksheet =& $workbook->addWorksheet();
// justifié
$format_justify =& $workbook->addFormat('vAlign' => 'vjustify');
// centrer le texte verticalement
$format_center =& $workbook->addFormat('vAlign' => 'vcenter');
// justifié et centré verticalement
$format_justify_center =& $workbook->addFormat();
$format_justify_center->setVAlign('vjustify');
$format_justify_center->setVAlign('vcenter');
$worksheet->write(0, 0, 'justify', $format_justify);
$worksheet->write(1, 0, 'center', $format_center);
$worksheet->write(2, 0, 'jc', $format_justify_center);
$workbook->send('align.xls');
$workbook->close();
?>