public function PHPExcel_Worksheet_PageSetup::isPrintAreaSet in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet/PageSetup.php \PHPExcel_Worksheet_PageSetup::isPrintAreaSet()
* Is print area set? * *
Parameters
int $index Identifier for a specific print area range if several ranges have been set: * Default behaviour, or an index value of 0, will identify whether any print range is set * Otherwise, existence of the range identified by the value of $index will be returned * Print areas are numbered from 1 * @return boolean
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet/ PageSetup.php, line 594
Class
- PHPExcel_Worksheet_PageSetup
- PHPExcel_Worksheet_PageSetup
Code
public function isPrintAreaSet($index = 0) {
if ($index == 0) {
return !is_null($this->_printArea);
}
$printAreas = explode(',', $this->_printArea);
return isset($printAreas[$index - 1]);
}