Overview

Packages

  • JAMA
  • None
  • PHP
  • PHPExcel
    • CachedObjectStorage
    • Calculation
    • Cell
    • Chart
      • Renderer
    • Reader
      • Excel2007
      • Excel5
    • RichText
    • Settings
    • Shared
      • Escher
      • OLE
      • Trend
      • ZipArchive
    • Style
    • Worksheet
      • Drawing
    • Writer
      • 2007
      • CSV
      • Excel2007
      • Excel5
      • HTML
      • PDF

Classes

  • PHPExcel_Style
  • PHPExcel_Style_Alignment
  • PHPExcel_Style_Border
  • PHPExcel_Style_Borders
  • PHPExcel_Style_Color
  • PHPExcel_Style_Conditional
  • PHPExcel_Style_Fill
  • PHPExcel_Style_Font
  • PHPExcel_Style_NumberFormat
  • PHPExcel_Style_Protection
  • PHPExcel_Style_Supervisor
  • Overview
  • Package
  • Class
  • Tree
  • Deprecated
  • Todo
  • Download

Class PHPExcel_Style_Font

PHPExcel_Style_Font

PHPExcel_Style_Supervisor
Extended by PHPExcel_Style_Font implements PHPExcel_IComparable
Package: PHPExcel\Style
Category: PHPExcel
Copyright: Copyright (c) 2006 - 2014 PHPExcel (http://www.codeplex.com/PHPExcel)
License: LGPL
Located at controlador/include/phpexcel/PHPExcel/Style/Font.php
Methods summary
public
# __construct( boolean $isSupervisor = FALSE, boolean $isConditional = FALSE )

Create a new PHPExcel_Style_Font

Create a new PHPExcel_Style_Font

Parameters

$isSupervisor

Flag indicating if this is a supervisor or not Leave this value at default unless you understand exactly what its ramifications are

$isConditional

Flag indicating if this is a conditional style or not Leave this value at default unless you understand exactly what its ramifications are

Overrides

PHPExcel_Style_Supervisor::__construct()
public PHPExcel_Style_Font
# getSharedComponent( )

Get the shared style component for the currently active cell in currently active sheet. Only used for style supervisor

Get the shared style component for the currently active cell in currently active sheet. Only used for style supervisor

Returns

PHPExcel_Style_Font
public array
# getStyleArray( array $array )

Build style array from subcomponents

Build style array from subcomponents

Parameters

$array

Returns

array
public PHPExcel_Style_Font
# applyFromArray( array $pStyles = null )

Apply styles from array

Apply styles from array

$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'
        )
    )
);

Parameters

$pStyles
Array containing style information

Returns

PHPExcel_Style_Font

Throws

PHPExcel_Exception
public string
# getName( )

Get Name

Get Name

Returns

string
public PHPExcel_Style_Font
# setName( string $pValue = 'Calibri' )

Set Name

Set Name

Parameters

$pValue

Returns

PHPExcel_Style_Font
public float
# getSize( )

Get Size

Get Size

Returns

float
public PHPExcel_Style_Font
# setSize( float $pValue = 10 )

Set Size

Set Size

Parameters

$pValue

Returns

PHPExcel_Style_Font
public boolean
# getBold( )

Get Bold

Get Bold

Returns

boolean
public PHPExcel_Style_Font
# setBold( boolean $pValue = false )

Set Bold

Set Bold

Parameters

$pValue

Returns

PHPExcel_Style_Font
public boolean
# getItalic( )

Get Italic

Get Italic

Returns

boolean
public PHPExcel_Style_Font
# setItalic( boolean $pValue = false )

Set Italic

Set Italic

Parameters

$pValue

Returns

PHPExcel_Style_Font
public boolean
# getSuperScript( )

Get SuperScript

Get SuperScript

Returns

boolean
public PHPExcel_Style_Font
# setSuperScript( boolean $pValue = false )

Set SuperScript

Set SuperScript

Parameters

$pValue

Returns

PHPExcel_Style_Font
public boolean
# getSubScript( )

Get SubScript

Get SubScript

Returns

boolean
public PHPExcel_Style_Font
# setSubScript( boolean $pValue = false )

Set SubScript

Set SubScript

Parameters

$pValue

Returns

PHPExcel_Style_Font
public string
# getUnderline( )

Get Underline

Get Underline

Returns

string
public PHPExcel_Style_Font
# setUnderline( string|boolean $pValue = PHPExcel_Style_Font::UNDERLINE_NONE )

Set Underline

Set Underline

Parameters

$pValue

PHPExcel_Style_Font underline type If a boolean is passed, then TRUE equates to UNDERLINE_SINGLE, false equates to UNDERLINE_NONE

Returns

PHPExcel_Style_Font
public boolean
# getStrikethrough( )

Get Strikethrough

Get Strikethrough

Returns

boolean
public PHPExcel_Style_Font
# setStrikethrough( boolean $pValue = false )

Set Strikethrough

Set Strikethrough

Parameters

$pValue

Returns

PHPExcel_Style_Font
public PHPExcel_Style_Color
# getColor( )

Get Color

Get Color

Returns

PHPExcel_Style_Color
public PHPExcel_Style_Font
# setColor( PHPExcel_Style_Color $pValue = null )

Set Color

Set Color

Parameters

$pValue

Returns

PHPExcel_Style_Font

Throws

PHPExcel_Exception
public string
# getHashCode( )

Get hash code

Get hash code

Returns

string
Hash code

Implementation of

PHPExcel_IComparable::getHashCode()
Methods inherited from PHPExcel_Style_Supervisor
__clone(), bindParent(), getActiveCell(), getActiveSheet(), getIsSupervisor(), getSelectedCells()
Constants summary
string UNDERLINE_NONE
# 'none'
string UNDERLINE_DOUBLE
# 'double'
string UNDERLINE_DOUBLEACCOUNTING
# 'doubleAccounting'
string UNDERLINE_SINGLE
# 'single'
string UNDERLINE_SINGLEACCOUNTING
# 'singleAccounting'
Properties summary
protected string $_name

Font Name

Font Name

# 'Calibri'
protected float $_size

Font Size

Font Size

# 11
protected boolean $_bold

Bold

Bold

# FALSE
protected boolean $_italic

Italic

Italic

# FALSE
protected boolean $_superScript

Superscript

Superscript

# FALSE
protected boolean $_subScript

Subscript

Subscript

# FALSE
protected string $_underline

Underline

Underline

# PHPExcel_Style_Font::UNDERLINE_NONE
protected boolean $_strikethrough

Strikethrough

Strikethrough

# FALSE
protected PHPExcel_Style_Color $_color

Foreground color

Foreground color

#
Properties inherited from PHPExcel_Style_Supervisor
$_isSupervisor, $_parent
Autene API documentation generated by ApiGen