Feature: Added getStyle() method to Cell object

This commit is contained in:
Mark Baker 2013-05-10 14:21:23 +01:00
parent b1c61d1be0
commit 04c1608f3f
3 changed files with 21 additions and 9 deletions

View File

@ -902,6 +902,17 @@ class PHPExcel_Cell
self::$_valueBinder = $binder;
}
/**
* Get style for cell
*
* @return PHPExcel_Style
* @throws PHPExcel_Exception
*/
public function getStyle()
{
return $this->getWorksheet()->getParent()->getCellXfByIndex($this->getXfIndex());
}
/**
* Implement PHP __clone to create a deep clone, not just a shallow copy.
*/

View File

@ -26,6 +26,7 @@
Fixed in develop branch for release v1.7.9:
- Feature: (MBaker) Include charts option for HTML Writer
- Feature: (MBaker) Added composer file
- Feature: (MBaker) Added getStyle() method to Cell object
- Bugfix: (Asker) Work item 18777 - Error in PHPEXCEL/Calculation.php script on line 2976 (stack pop check)
- Bugfix: (MBaker) Work item 18794 - CSV files without a file extension being identified as HTML
- Bugfix: (AndreKR) Work item GH-66 - Wrong check for maximum number of rows in Excel5 Writer