mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-23 16:49:29 +00:00
Search style by identity in PHPExcel_Worksheet::duplicateStyle()
This commit is contained in:
@@ -607,6 +607,22 @@ class PHPExcel
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if style exists in style collection
|
||||
*
|
||||
* @param PHPExcel_Style $style
|
||||
* @return boolean
|
||||
*/
|
||||
public function cellXfExists($pCellStyle = null)
|
||||
{
|
||||
foreach ($this->_cellXfCollection as $cellXf) {
|
||||
if ($cellXf === $pCellStyle) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get default style
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user