public function PHPExcel_Worksheet::removeColumnByIndex in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php \PHPExcel_Worksheet::removeColumnByIndex()
Remove a column, updating all possible related data
Parameters
int $pColumn Remove starting with this one (numeric column coordinate of the cell):
int $pNumCols Number of columns to remove:
Return value
Throws
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet.php, line 2112
Class
- PHPExcel_Worksheet
- PHPExcel_Worksheet
Code
public function removeColumnByIndex($pColumn = 0, $pNumCols = 1) {
if ($pColumn >= 0) {
return $this
->removeColumn(PHPExcel_Cell::stringFromColumnIndex($pColumn), $pNumCols);
}
else {
throw new PHPExcel_Exception("Columns to be deleted should at least start from column 0");
}
}