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_Borders

PHPExcel_Style_Borders

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

Create a new PHPExcel_Style_Borders

Create a new PHPExcel_Style_Borders

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

Build style array from subcomponents

Build style array from subcomponents

Parameters

$array

Returns

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

Apply styles from array

Apply styles from array

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

Parameters

$pStyles
Array containing style information

Returns

PHPExcel_Style_Borders

Throws

PHPExcel_Exception
public PHPExcel_Style_Border
# getLeft( )

Get Left

Get Left

Returns

PHPExcel_Style_Border
public PHPExcel_Style_Border
# getRight( )

Get Right

Get Right

Returns

PHPExcel_Style_Border
public PHPExcel_Style_Border
# getTop( )

Get Top

Get Top

Returns

PHPExcel_Style_Border
public PHPExcel_Style_Border
# getBottom( )

Get Bottom

Get Bottom

Returns

PHPExcel_Style_Border
public PHPExcel_Style_Border
# getDiagonal( )

Get Diagonal

Get Diagonal

Returns

PHPExcel_Style_Border
public PHPExcel_Style_Border
# getAllBorders( )

Get AllBorders (pseudo-border). Only applies to supervisor.

Get AllBorders (pseudo-border). Only applies to supervisor.

Returns

PHPExcel_Style_Border

Throws

PHPExcel_Exception
public boolean
# getOutline( )

Get Outline (pseudo-border). Only applies to supervisor.

Get Outline (pseudo-border). Only applies to supervisor.

Returns

boolean

Throws

PHPExcel_Exception
public boolean
# getInside( )

Get Inside (pseudo-border). Only applies to supervisor.

Get Inside (pseudo-border). Only applies to supervisor.

Returns

boolean

Throws

PHPExcel_Exception
public PHPExcel_Style_Border
# getVertical( )

Get Vertical (pseudo-border). Only applies to supervisor.

Get Vertical (pseudo-border). Only applies to supervisor.

Returns

PHPExcel_Style_Border

Throws

PHPExcel_Exception
public PHPExcel_Style_Border
# getHorizontal( )

Get Horizontal (pseudo-border). Only applies to supervisor.

Get Horizontal (pseudo-border). Only applies to supervisor.

Returns

PHPExcel_Style_Border

Throws

PHPExcel_Exception
public integer
# getDiagonalDirection( )

Get DiagonalDirection

Get DiagonalDirection

Returns

integer
public PHPExcel_Style_Borders
# setDiagonalDirection( integer $pValue = PHPExcel_Style_Borders::DIAGONAL_NONE )

Set DiagonalDirection

Set DiagonalDirection

Parameters

$pValue

Returns

PHPExcel_Style_Borders
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
integer DIAGONAL_NONE
# 0
integer DIAGONAL_UP
# 1
integer DIAGONAL_DOWN
# 2
integer DIAGONAL_BOTH
# 3
Properties summary
protected PHPExcel_Style_Border $_left

Left

Left

#
protected PHPExcel_Style_Border $_right

Right

Right

#
protected PHPExcel_Style_Border $_top

Top

Top

#
protected PHPExcel_Style_Border $_bottom

Bottom

Bottom

#
protected PHPExcel_Style_Border $_diagonal

Diagonal

Diagonal

#
protected integer $_diagonalDirection

DiagonalDirection

DiagonalDirection

#
protected PHPExcel_Style_Border $_allBorders

All borders psedo-border. Only applies to supervisor.

All borders psedo-border. Only applies to supervisor.

#
protected PHPExcel_Style_Border $_outline

Outline psedo-border. Only applies to supervisor.

Outline psedo-border. Only applies to supervisor.

#
protected PHPExcel_Style_Border $_inside

Inside psedo-border. Only applies to supervisor.

Inside psedo-border. Only applies to supervisor.

#
protected PHPExcel_Style_Border $_vertical

Vertical pseudo-border. Only applies to supervisor.

Vertical pseudo-border. Only applies to supervisor.

#
protected PHPExcel_Style_Border $_horizontal

Horizontal pseudo-border. Only applies to supervisor.

Horizontal pseudo-border. Only applies to supervisor.

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