You are here

public function PHPExcel_Style_Alignment::setReadorder in Loft Data Grids 7.2

Same name and namespace in other branches
  1. 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Alignment.php \PHPExcel_Style_Alignment::setReadorder()

* Set read order * *

Parameters

int $pValue: * @return PHPExcel_Style_Alignment

1 call to PHPExcel_Style_Alignment::setReadorder()
PHPExcel_Style_Alignment::applyFromArray in vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Alignment.php
* Apply styles from array * * <code> * $objPHPExcel->getActiveSheet()->getStyle('B2')->getAlignment()->applyFromArray( * array( * 'horizontal' => PHPExcel_Style_Alignment::HORIZONTAL_CENTER, …

File

vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Alignment.php, line 425

Class

PHPExcel_Style_Alignment
PHPExcel_Style_Alignment

Code

public function setReadorder($pValue = 0) {
  if ($pValue < 0 || $pValue > 2) {
    $pValue = 0;
  }
  if ($this->_isSupervisor) {
    $styleArray = $this
      ->getStyleArray(array(
      'readorder' => $pValue,
    ));
    $this
      ->getActiveSheet()
      ->getStyle($this
      ->getSelectedCells())
      ->applyFromArray($styleArray);
  }
  else {
    $this->_readorder = $pValue;
  }
  return $this;
}