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_Border

PHPExcel_Style_Border

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

Create a new PHPExcel_Style_Border

Create a new PHPExcel_Style_Border

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_Border
# bindParent( PHPExcel_Style_Borders $parent, string $parentPropertyName = NULL )

Bind parent. Only used for supervisor

Bind parent. Only used for supervisor

Parameters

$parent
$parentPropertyName

Returns

PHPExcel_Style_Border

Overrides

PHPExcel_Style_Supervisor::bindParent()
public PHPExcel_Style_Border
# 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_Border

Throws

PHPExcel_Exception
public array
# getStyleArray( array $array )

Build style array from subcomponents

Build style array from subcomponents

Parameters

$array

Returns

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

Apply styles from array

Apply styles from array

$objPHPExcel->getActiveSheet()->getStyle('B2')->getBorders()->getTop()->applyFromArray(
    array(
        'style' => PHPExcel_Style_Border::BORDER_DASHDOT,
        'color' => array(
            'rgb' => '808080'
        )
    )
);

Parameters

$pStyles
Array containing style information

Returns

PHPExcel_Style_Border

Throws

PHPExcel_Exception
public string
# getBorderStyle( )

Get Border style

Get Border style

Returns

string
public PHPExcel_Style_Border
# setBorderStyle( string|boolean $pValue = PHPExcel_Style_Border::BORDER_NONE )

Set Border style

Set Border style

Parameters

$pValue

When passing a boolean, FALSE equates PHPExcel_Style_Border::BORDER_NONE and TRUE to PHPExcel_Style_Border::BORDER_MEDIUM

Returns

PHPExcel_Style_Border
public PHPExcel_Style_Color
# getColor( )

Get Border Color

Get Border Color

Returns

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

Set Border Color

Set Border Color

Parameters

$pValue

Returns

PHPExcel_Style_Border

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(), getActiveCell(), getActiveSheet(), getIsSupervisor(), getSelectedCells()
Constants summary
string BORDER_NONE
# 'none'
string BORDER_DASHDOT
# 'dashDot'
string BORDER_DASHDOTDOT
# 'dashDotDot'
string BORDER_DASHED
# 'dashed'
string BORDER_DOTTED
# 'dotted'
string BORDER_DOUBLE
# 'double'
string BORDER_HAIR
# 'hair'
string BORDER_MEDIUM
# 'medium'
string BORDER_MEDIUMDASHDOT
# 'mediumDashDot'
string BORDER_MEDIUMDASHDOTDOT
# 'mediumDashDotDot'
string BORDER_MEDIUMDASHED
# 'mediumDashed'
string BORDER_SLANTDASHDOT
# 'slantDashDot'
string BORDER_THICK
# 'thick'
string BORDER_THIN
# 'thin'
Properties summary
protected string $_borderStyle

Border style

Border style

# PHPExcel_Style_Border::BORDER_NONE
protected PHPExcel_Style_Color $_color

Border color

Border color

#
protected string $_parentPropertyName

Parent property name

Parent property name

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