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_Fill

PHPExcel_Style_Fill

PHPExcel_Style_Supervisor
Extended by PHPExcel_Style_Fill 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/Fill.php
Methods summary
public
# __construct( boolean $isSupervisor = FALSE, boolean $isConditional = FALSE )

Create a new PHPExcel_Style_Fill

Create a new PHPExcel_Style_Fill

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_Fill
# 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_Fill
public array
# getStyleArray( array $array )

Build style array from subcomponents

Build style array from subcomponents

Parameters

$array

Returns

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

Apply styles from array

Apply styles from array

$objPHPExcel->getActiveSheet()->getStyle('B2')->getFill()->applyFromArray(
    array(
        'type'     => PHPExcel_Style_Fill::FILL_GRADIENT_LINEAR,
        'rotation'   => 0,
        'startcolor' => array(
            'rgb' => '000000'
        ),
        'endcolor'   => array(
            'argb' => 'FFFFFFFF'
        )
    )
);

Parameters

$pStyles
Array containing style information

Returns

PHPExcel_Style_Fill

Throws

PHPExcel_Exception
public string
# getFillType( )

Get Fill Type

Get Fill Type

Returns

string
public PHPExcel_Style_Fill
# setFillType( string $pValue = PHPExcel_Style_Fill::FILL_NONE )

Set Fill Type

Set Fill Type

Parameters

$pValue
PHPExcel_Style_Fill fill type

Returns

PHPExcel_Style_Fill
public float
# getRotation( )

Get Rotation

Get Rotation

Returns

float
public PHPExcel_Style_Fill
# setRotation( float $pValue = 0 )

Set Rotation

Set Rotation

Parameters

$pValue

Returns

PHPExcel_Style_Fill
public PHPExcel_Style_Color
# getStartColor( )

Get Start Color

Get Start Color

Returns

PHPExcel_Style_Color
public PHPExcel_Style_Fill
# setStartColor( PHPExcel_Style_Color $pValue = null )

Set Start Color

Set Start Color

Parameters

$pValue

Returns

PHPExcel_Style_Fill

Throws

PHPExcel_Exception
public PHPExcel_Style_Color
# getEndColor( )

Get End Color

Get End Color

Returns

PHPExcel_Style_Color
public PHPExcel_Style_Fill
# setEndColor( PHPExcel_Style_Color $pValue = null )

Set End Color

Set End Color

Parameters

$pValue

Returns

PHPExcel_Style_Fill

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 FILL_NONE
# 'none'
string FILL_SOLID
# 'solid'
string FILL_GRADIENT_LINEAR
# 'linear'
string FILL_GRADIENT_PATH
# 'path'
string FILL_PATTERN_DARKDOWN
# 'darkDown'
string FILL_PATTERN_DARKGRAY
# 'darkGray'
string FILL_PATTERN_DARKGRID
# 'darkGrid'
string FILL_PATTERN_DARKHORIZONTAL
# 'darkHorizontal'
string FILL_PATTERN_DARKTRELLIS
# 'darkTrellis'
string FILL_PATTERN_DARKUP
# 'darkUp'
string FILL_PATTERN_DARKVERTICAL
# 'darkVertical'
string FILL_PATTERN_GRAY0625
# 'gray0625'
string FILL_PATTERN_GRAY125
# 'gray125'
string FILL_PATTERN_LIGHTDOWN
# 'lightDown'
string FILL_PATTERN_LIGHTGRAY
# 'lightGray'
string FILL_PATTERN_LIGHTGRID
# 'lightGrid'
string FILL_PATTERN_LIGHTHORIZONTAL
# 'lightHorizontal'
string FILL_PATTERN_LIGHTTRELLIS
# 'lightTrellis'
string FILL_PATTERN_LIGHTUP
# 'lightUp'
string FILL_PATTERN_LIGHTVERTICAL
# 'lightVertical'
string FILL_PATTERN_MEDIUMGRAY
# 'mediumGray'
Properties summary
protected string $_fillType

Fill type

Fill type

# PHPExcel_Style_Fill::FILL_NONE
protected float $_rotation

Rotation

Rotation

# 0
protected PHPExcel_Style_Color $_startColor

Start color

Start color

#
protected PHPExcel_Style_Color $_endColor

End color

End color

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