Рекурсивный акроним словосочетания «PHP: Hypertext Preprocessor»
Добро пожаловать на форум PHP программистов!
За последние 24 часа нас посетили 17218 программистов и 1834 робота. Сейчас ищут 1615 программистов ...
Format::setUnderline
Вернуться к: Spreadsheet_Excel_Writer
Format::setUnderline
Format::setUnderline – Sets the underline of the text
Synopsis
require_once "Spreadsheet/Excel/Writer.php";
void Format::setUnderline ( integer $underline )
Sets the underline of the text
Parameter
-
integer $underline - The value for underline. Possible values are 1 => underline, 2 => double underline.
Note
This function can not be called statically.
Example
Using setUnderline()
<?php
require_once 'Spreadsheet/Excel/Writer.php';
$workbook = new Spreadsheet_Excel_Writer();
$format_underline =& $workbook->addFormat();
$format_underline->setUnderline(1);
$worksheet =& $workbook->addWorksheet();
$worksheet->write(0, 0, "This is underlined", $format_underline);
$format_underline->setUnderline(2);
$worksheet->write(1, 0, "This is twice underlined", $format_underline);
?>
Вернуться к: Spreadsheet_Excel_Writer