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_Alignment

PHPExcel_Style_Alignment

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

Create a new PHPExcel_Style_Alignment

Create a new PHPExcel_Style_Alignment

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

Build style array from subcomponents

Build style array from subcomponents

Parameters

$array

Returns

array
public PHPExcel_Style_Alignment
# applyFromArray( array $pStyles = NULL )

Apply styles from array

Apply styles from array

$objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray(
    array(
        'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER,
        'vertical'   => PHPExcel_Style_Alignment::VERTICAL_CENTER,
        'rotation'   => 0,
        'wrap'          => TRUE
    )
);

Parameters

$pStyles
Array containing style information

Returns

PHPExcel_Style_Alignment

Throws

PHPExcel_Exception
public string
# getHorizontal( )

Get Horizontal

Get Horizontal

Returns

string
public PHPExcel_Style_Alignment
# setHorizontal( string $pValue = PHPExcel_Style_Alignment::HORIZONTAL_GENERAL )

Set Horizontal

Set Horizontal

Parameters

$pValue

Returns

PHPExcel_Style_Alignment
public string
# getVertical( )

Get Vertical

Get Vertical

Returns

string
public PHPExcel_Style_Alignment
# setVertical( string $pValue = PHPExcel_Style_Alignment::VERTICAL_BOTTOM )

Set Vertical

Set Vertical

Parameters

$pValue

Returns

PHPExcel_Style_Alignment
public integer
# getTextRotation( )

Get TextRotation

Get TextRotation

Returns

integer
public PHPExcel_Style_Alignment
# setTextRotation( integer $pValue = 0 )

Set TextRotation

Set TextRotation

Parameters

$pValue

Returns

PHPExcel_Style_Alignment

Throws

PHPExcel_Exception
public boolean
# getWrapText( )

Get Wrap Text

Get Wrap Text

Returns

boolean
public PHPExcel_Style_Alignment
# setWrapText( boolean $pValue = FALSE )

Set Wrap Text

Set Wrap Text

Parameters

$pValue

Returns

PHPExcel_Style_Alignment
public boolean
# getShrinkToFit( )

Get Shrink to fit

Get Shrink to fit

Returns

boolean
public PHPExcel_Style_Alignment
# setShrinkToFit( boolean $pValue = FALSE )

Set Shrink to fit

Set Shrink to fit

Parameters

$pValue

Returns

PHPExcel_Style_Alignment
public integer
# getIndent( )

Get indent

Get indent

Returns

integer
public PHPExcel_Style_Alignment
# setIndent( integer $pValue = 0 )

Set indent

Set indent

Parameters

$pValue

Returns

PHPExcel_Style_Alignment
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 HORIZONTAL_GENERAL
# 'general'
string HORIZONTAL_LEFT
# 'left'
string HORIZONTAL_RIGHT
# 'right'
string HORIZONTAL_CENTER
# 'center'
string HORIZONTAL_CENTER_CONTINUOUS
# 'centerContinuous'
string HORIZONTAL_JUSTIFY
# 'justify'
string HORIZONTAL_FILL
# 'fill'
string HORIZONTAL_DISTRIBUTED
# 'distributed'
string VERTICAL_BOTTOM
# 'bottom'
string VERTICAL_TOP
# 'top'
string VERTICAL_CENTER
# 'center'
string VERTICAL_JUSTIFY
# 'justify'
string VERTICAL_DISTRIBUTED
# 'distributed'
Properties summary
protected string $_horizontal

Horizontal

Horizontal

# PHPExcel_Style_Alignment::HORIZONTAL_GENERAL
protected string $_vertical

Vertical

Vertical

# PHPExcel_Style_Alignment::VERTICAL_BOTTOM
protected integer $_textRotation

Text rotation

Text rotation

# 0
protected boolean $_wrapText

Wrap text

Wrap text

# FALSE
protected boolean $_shrinkToFit

Shrink to fit

Shrink to fit

# FALSE
protected integer $_indent

Indent - only possible with horizontal alignment left and right

Indent - only possible with horizontal alignment left and right

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