Added getStyle() method to Cell object

This commit is contained in:
Mark Baker 2013-05-09 22:28:23 +01:00
parent b1c61d1be0
commit 69dc096fe7
2 changed files with 11 additions and 0 deletions

View File

@ -486,6 +486,16 @@ class PHPExcel_Cell
return $this->_parent->getParent();
}
/**
* Get cell style
*
* @return PHPExcel_Style
*/
public function getStyle()
{
return $this->getWorksheet()->getParent()->getCellXfByIndex($this->getXfIndex());
}
/**
* Re-bind parent
*

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