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

Note

This function can not be called statically.

Example

Example 43-1. 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);
?>