public function PHPExcel_Style_Color::getSharedComponent in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Style/Color.php \PHPExcel_Style_Color::getSharedComponent()
* Get the shared style component for the currently active cell in currently active sheet. * Only used for style supervisor * *
Return value
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Style/ Color.php, line 114
Class
- PHPExcel_Style_Color
- PHPExcel_Style_Color
Code
public function getSharedComponent() {
switch ($this->_parentPropertyName) {
case '_endColor':
return $this->_parent
->getSharedComponent()
->getEndColor();
break;
case '_color':
return $this->_parent
->getSharedComponent()
->getColor();
break;
case '_startColor':
return $this->_parent
->getSharedComponent()
->getStartColor();
break;
}
}