You are here

public function PHPExcel::removeCellStyleXfByIndex in Loft Data Grids 7.2

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

Remove cellStyleXf by index

Parameters

int $pIndex:

Throws

PHPExcel_Exception

File

vendor/phpoffice/phpexcel/Classes/PHPExcel.php, line 1039

Class

PHPExcel
PHPExcel

Code

public function removeCellStyleXfByIndex($pIndex = 0) {
  if ($pIndex > count($this->_cellStyleXfCollection) - 1) {
    throw new PHPExcel_Exception("CellStyleXf index is out of bounds.");
  }
  else {
    array_splice($this->_cellStyleXfCollection, $pIndex, 1);
  }
}