public function PHPExcel_Worksheet::setBreak in Loft Data Grids 7.2
Same name and namespace in other branches
- 6.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Worksheet.php \PHPExcel_Worksheet::setBreak()
Set break on a cell
Parameters
string $pCell Cell coordinate (e.g. A1):
int $pBreak Break type (type of PHPExcel_Worksheet::BREAK_*):
Return value
Throws
1 call to PHPExcel_Worksheet::setBreak()
- PHPExcel_Worksheet::setBreakByColumnAndRow in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet.php - Set break on a cell by using numeric cell coordinates
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Worksheet.php, line 1637
Class
- PHPExcel_Worksheet
- PHPExcel_Worksheet
Code
public function setBreak($pCell = 'A1', $pBreak = PHPExcel_Worksheet::BREAK_NONE) {
// Uppercase coordinate
$pCell = strtoupper($pCell);
if ($pCell != '') {
if ($pBreak == PHPExcel_Worksheet::BREAK_NONE) {
if (isset($this->_breaks[$pCell])) {
unset($this->_breaks[$pCell]);
}
}
else {
$this->_breaks[$pCell] = $pBreak;
}
}
else {
throw new PHPExcel_Exception('No cell coordinate specified.');
}
return $this;
}