previousFormat::setPattern (Previous) (Next) Format::setItalicnext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

Format::setUnderline

Format::setUnderline – Sets the underline of the text

Synopsis

require_once "Spreadsheet/Excel/Writer.php";

void Format::setUnderline ( integer $underline )

Description

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(00"This is underlined"$format_underline);
  
$format_underline->setUnderline(2);
  
$worksheet->write(10"This is twice underlined"$format_underline);
?>
previousFormat::setPattern (Previous) (Next) Format::setItalicnext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.