[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/lib/phpexcel/PHPExcel/Style/ -> Font.php (summary)

(no description)

File Size: 543 lines (15 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

PHPExcel_Style_Font:: (23 methods):
  __construct()
  getSharedComponent()
  getStyleArray()
  applyFromArray()
  getName()
  setName()
  getSize()
  setSize()
  getBold()
  setBold()
  getItalic()
  setItalic()
  getSuperScript()
  setSuperScript()
  getSubScript()
  setSubScript()
  getUnderline()
  setUnderline()
  getStrikethrough()
  setStrikethrough()
  getColor()
  setColor()
  getHashCode()


Class: PHPExcel_Style_Font  - X-Ref

PHPExcel_Style_Font

Copyright (c) 2006 - 2015 PHPExcel

This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

__construct($isSupervisor = false, $isConditional = false)   X-Ref
Create a new PHPExcel_Style_Font

param: boolean    $isSupervisor    Flag indicating if this is a supervisor or not
param: boolean    $isConditional    Flag indicating if this is a conditional style or not

getSharedComponent()   X-Ref
Get the shared style component for the currently active cell in currently active sheet.
Only used for style supervisor

return: PHPExcel_Style_Font

getStyleArray($array)   X-Ref
Build style array from subcomponents

param: array $array
return: array

applyFromArray($pStyles = null)   X-Ref
Apply styles from array

<code>
$objPHPExcel->getActiveSheet()->getStyle('B2')->getFont()->applyFromArray(
array(
'name'        => 'Arial',
'bold'        => TRUE,
'italic'    => FALSE,
'underline' => PHPExcel_Style_Font::UNDERLINE_DOUBLE,
'strike'    => FALSE,
'color'        => array(
'rgb' => '808080'
)
)
);
</code>

param: array    $pStyles    Array containing style information
return: PHPExcel_Style_Font

getName()   X-Ref
Get Name

return: string

setName($pValue = 'Calibri')   X-Ref
Set Name

param: string $pValue
return: PHPExcel_Style_Font

getSize()   X-Ref
Get Size

return: double

setSize($pValue = 10)   X-Ref
Set Size

param: double $pValue
return: PHPExcel_Style_Font

getBold()   X-Ref
Get Bold

return: boolean

setBold($pValue = false)   X-Ref
Set Bold

param: boolean $pValue
return: PHPExcel_Style_Font

getItalic()   X-Ref
Get Italic

return: boolean

setItalic($pValue = false)   X-Ref
Set Italic

param: boolean $pValue
return: PHPExcel_Style_Font

getSuperScript()   X-Ref
Get SuperScript

return: boolean

setSuperScript($pValue = false)   X-Ref
Set SuperScript

param: boolean $pValue
return: PHPExcel_Style_Font

getSubScript()   X-Ref
Get SubScript

return: boolean

setSubScript($pValue = false)   X-Ref
Set SubScript

param: boolean $pValue
return: PHPExcel_Style_Font

getUnderline()   X-Ref
Get Underline

return: string

setUnderline($pValue = self::UNDERLINE_NONE)   X-Ref
Set Underline

param: string|boolean $pValue    PHPExcel_Style_Font underline type
return: PHPExcel_Style_Font

getStrikethrough()   X-Ref
Get Strikethrough

return: boolean

setStrikethrough($pValue = false)   X-Ref
Set Strikethrough

param: boolean $pValue
return: PHPExcel_Style_Font

getColor()   X-Ref
Get Color

return: PHPExcel_Style_Color

setColor(PHPExcel_Style_Color $pValue = null)   X-Ref
Set Color

param: PHPExcel_Style_Color $pValue
return: PHPExcel_Style_Font

getHashCode()   X-Ref
Get hash code

return: string    Hash code



Generated: Thu Aug 11 10:00:09 2016 Cross-referenced by PHPXref 0.7.1