Class: PHPExcel_Worksheet
Source Location: /PHPExcel/Worksheet.php
PHPExcel_Worksheet
Author(s):
Copyright:
- Copyright (c) 2006 - 2012 PHPExcel (http://www.codeplex.com/PHPExcel)
Implements interfaces:
|
|
|
Class Details
Class Methods
static method extractSheetTitle [line 2568]
static mixed extractSheetTitle(
string
$pRange, [bool
$returnRange = false])
|
|
Extract worksheet title from range. Example: extractSheetTitle("testSheet!A1") ==> 'A1' Example: extractSheetTitle("'testSheet 1'!A1", true) ==> array('testSheet 1', 'A1');
Tags:
Parameters:
static method getInvalidCharacters [line 402]
static array getInvalidCharacters(
)
|
|
Get array of invalid characters for sheet title
Tags:
method addChart [line 528]
PHPExcel_Chart addChart(
[PHPExcel_Chart
$pChart = null], [int|null
$iChartIndex = null])
|
|
Add chart
Tags:
Parameters:
constructor __construct [line 334]
PHPExcel_Worksheet __construct(
[PHPExcel
$pParent = null], [string
$pTitle = 'Worksheet'])
|
|
Create a new worksheet
Tags:
Parameters:
method calculateColumnWidths [line 677]
PHPExcel_Worksheet; calculateColumnWidths(
[boolean
$calculateMergeCells = false])
|
|
Calculate widths for auto-size columns
Tags:
Parameters:
method calculateWorksheetDataDimension [line 665]
string calculateWorksheetDataDimension(
)
|
|
Calculate worksheet data dimension
Tags:
method calculateWorksheetDimension [line 654]
string calculateWorksheetDimension(
)
|
|
Calculate worksheet dimension
Tags:
method cellExists [line 1184]
boolean cellExists(
[string
$pCoordinate = 'A1'])
|
|
Cell at a specific coordinate exists?
Tags:
Parameters:
method cellExistsByColumnAndRow [line 1231]
boolean cellExistsByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 1])
|
|
Cell at a specific coordinate by using numeric cell coordinates exists?
Tags:
Parameters:
method conditionalStylesExists [line 1367]
boolean conditionalStylesExists(
[string
$pCoordinate = 'A1'])
|
|
Do conditional styles exist for this cell?
Tags:
Parameters:
method copy [line 2762]
Copy worksheet (!= clone!)
Tags:
method dataValidationExists [line 2678]
boolean dataValidationExists(
[string
$pCoordinate = 'A1'])
|
|
Data validation at a specific coordinate exists?
Tags:
Parameters:
method disconnectCells [line 379]
Disconnect all cells from this PHPExcel_Worksheet object, typically so that the worksheet object can be unset
Tags:
method duplicateConditionalStyle [line 1513]
PHPExcel_Worksheet duplicateConditionalStyle(
[array
$pCellStyle = null], [string
$pRange = ''])
|
|
Duplicate conditional style to a range of cells Please note that this will overwrite existing cell styles for cells in range!
Tags:
Parameters:
method duplicateStyle [line 1449]
PHPExcel_Worksheet duplicateStyle(
[PHPExcel_Style
$pCellStyle = null], [string
$pRange = ''])
|
|
Duplicate cell style to a range of cells Please note that this will overwrite existing cell styles for cells in range!
Tags:
Parameters:
method duplicateStyleArray [line 1573]
PHPExcel_Worksheet duplicateStyleArray(
[array
$pStyles = null], [string
$pRange = ''], [boolean
$pAdvanced = true])
|
|
Duplicate cell style array to a range of cells Please note that this will overwrite existing cell styles for cells in range, if they are in the styles array. For example, if you decide to set a range of cells to font bold, only include font bold in the styles array.
Tags:
Parameters:
method freezePane [line 1912]
Freeze Pane
Tags:
Parameters:
method freezePaneByColumnAndRow [line 1933]
Freeze Pane by using numeric cell coordinates
Tags:
Parameters:
method fromArray [line 2338]
PHPExcel_Worksheet fromArray(
[array
$source = null], [mixed
$nullValue = null], [string
$startCell = 'A1'], [boolean
$strictNullComparison = false])
|
|
Fill worksheet from values in array
Tags:
Parameters:
method garbageCollect [line 2504]
Run PHPExcel garabage collector.
Tags:
method getActiveCell [line 2235]
method getAutoFilter [line 1837]
method getBreaks [line 1620]
method getCell [line 1087]
Get cell at a specific coordinate
Tags:
Parameters:
method getCellByColumnAndRow [line 1157]
PHPExcel_Cell getCellByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 1])
|
|
Get cell at a specific coordinate by using numeric cell coordinates
Tags:
Parameters:
method getCellCacheController [line 392]
PHPExcel_CachedObjectStorage_xxx getCellCacheController(
)
|
|
Return the cache controller for the cell collection
Tags:
method getCellCollection [line 435]
PHPExcel_Cell[] getCellCollection(
[boolean
$pSorted = true])
|
|
Get collection of cells
Tags:
Parameters:
method getChartByIndex [line 559]
Get a chart by its index position
Tags:
Parameters:
method getChartByName [line 597]
Get a chart by name
Tags:
Parameters:
method getChartCollection [line 515]
PHPExcel_Chart[] getChartCollection(
)
|
|
Get collection of charts
Tags:
method getChartCount [line 547]
Return the count of charts on this worksheet
Tags:
method getChartNames [line 581]
string[] getChartNames(
)
|
|
Return an array of the names of charts on this worksheet
Tags:
method getColumnDimension [line 1262]
Get column dimension at a specific column
Tags:
Parameters:
method getColumnDimensionByColumn [line 1283]
Get column dimension at a specific column by using numeric cell coordinates
Tags:
Parameters:
method getColumnDimensions [line 485]
PHPExcel_Worksheet_ColumnDimension[] getColumnDimensions(
)
|
|
Get collection of column dimensions
Tags:
method getComment [line 2183]
Get comment for cell
Tags:
Parameters:
method getCommentByColumnAndRow [line 2214]
Get comment for cell by using numeric cell coordinates
Tags:
Parameters:
method getComments [line 2158]
PHPExcel_Comment[] getComments(
)
|
|
Get comments
Tags:
method getConditionalStyles [line 1353]
PHPExcel_Style_Conditional[] getConditionalStyles(
[string
$pCoordinate = 'A1'])
|
|
Get conditional styles for a cell
Tags:
Parameters:
method getConditionalStylesCollection [line 1392]
array getConditionalStylesCollection(
)
|
|
Get collection of conditional styles
Tags:
method getDataValidation [line 2643]
void getDataValidation(
[string
$pCellCoordinate = 'A1'])
|
|
Get data validation
Tags:
Parameters:
method getDataValidationCollection [line 2688]
PHPExcel_Cell_DataValidation[] getDataValidationCollection(
)
|
|
Get collection of data validations
Tags:
method getDefaultColumnDimension [line 495]
Get default column dimension
Tags:
method getDefaultRowDimension [line 475]
Get default row dimension
Tags:
method getDefaultStyle [line 1305]
Get default style of workbork.
Tags:
method getDrawingCollection [line 505]
PHPExcel_Worksheet_BaseDrawing[] getDrawingCollection(
)
|
|
Get collection of drawings
Tags:
method getFreezePane [line 1895]
method getHashCode [line 2546]
method getHeaderFooter [line 906]
Get page header/footer
Tags:
method getHighestColumn [line 974]
string getHighestColumn(
)
|
|
Get highest worksheet column
Tags:
method getHighestDataColumn [line 984]
string getHighestDataColumn(
)
|
|
Get highest worksheet column that contains data
Tags:
method getHighestDataRow [line 1004]
string getHighestDataRow(
)
|
|
Get highest worksheet row that contains data
Tags:
method getHighestRow [line 994]
Get highest worksheet row
Tags:
method getHighestRowAndColumn [line 1014]
array getHighestRowAndColumn(
)
|
|
Get highest worksheet column and highest row that have cell records
Tags:
method getHyperlink [line 2588]
void getHyperlink(
[string
$pCellCoordinate = 'A1'])
|
|
Get hyperlink
Tags:
Parameters:
method getHyperlinkCollection [line 2633]
PHPExcel_Cell_Hyperlink[] getHyperlinkCollection(
)
|
|
Get collection of hyperlinks
Tags:
method getMergeCells [line 1726]
Get merge cells array.
Tags:
method getPageMargins [line 884]
method getPageSetup [line 862]
method getParent [line 738]
method getPrintGridlines [line 2078]
boolean getPrintGridlines(
)
|
|
Print gridlines?
Tags:
method getProtectedCells [line 1827]
array[] getProtectedCells(
)
|
|
Get protected cells
Tags:
method getProtection [line 950]
method getRightToLeft [line 2313]
boolean getRightToLeft(
)
|
|
Get right-to-left
Tags:
method getRowDimension [line 1242]
Get row dimension at a specific row
Tags:
Parameters:
method getRowDimensions [line 465]
PHPExcel_Worksheet_RowDimension[] getRowDimensions(
)
|
|
Get collection of row dimensions
Tags:
method getRowIterator [line 2495]
Get row iterator
Tags:
Parameters:
method getSelectedCell [line 2225]
string getSelectedCell(
)
|
|
Get selected cell
Tags:
method getSelectedCells [line 2245]
string getSelectedCells(
)
|
|
Get selected cells
Tags:
method getSheetState [line 842]
method getSheetView [line 928]
method getShowGridlines [line 2058]
boolean getShowGridlines(
)
|
|
Show gridlines?
Tags:
method getShowRowColHeaders [line 2098]
boolean getShowRowColHeaders(
)
|
|
Show row and column headers?
Tags:
method getShowSummaryBelow [line 2118]
boolean getShowSummaryBelow(
)
|
|
Show summary below? (Row/Column outlining)
Tags:
method getShowSummaryRight [line 2138]
boolean getShowSummaryRight(
)
|
|
Show summary right? (Row/Column outlining)
Tags:
method getStyle [line 1336]
Get style for cell
Tags:
Parameters:
method getStyleByColumnAndRow [line 1417]
PHPExcel_Style getStyleByColumnAndRow(
[int
$pColumn = 0], [int
$pRow = 1])
|
|
Get style for cell by using numeric cell coordinates
Tags:
Parameters:
method getStyles [line 1293]
PHPExcel_Style[] getStyles(
)
|
|
Get styles
Tags:
method getTabColor [line 2726]
method getTitle [line 767]
method hyperlinkExists [line 2623]
boolean hyperlinkExists(
[string
$pCoordinate = 'A1'])
|
|
Hyperlink at a specific coordinate exists?
Tags:
Parameters:
method insertNewColumnBefore [line 1974]
Insert a new column, updating all possible related data
Tags:
Parameters:
method insertNewColumnBeforeByIndex [line 1992]
Insert a new column, updating all possible related data
Tags:
Parameters:
method insertNewRowBefore [line 1956]
Insert a new row, updating all possible related data
Tags:
Parameters:
method isTabColorSet [line 2752]
method mergeCells [line 1632]
Set merge on a cell range
Tags:
Parameters:
method mergeCellsByColumnAndRow [line 1674]
PHPExcel_Worksheet mergeCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 1], [int
$pColumn2 = 0], [int
$pRow2 = 1])
|
|
Set merge on a cell range by using numeric cell coordinates
Tags:
Parameters:
method namedRangeToArray [line 2453]
array namedRangeToArray(
[string
$pNamedRange = ''], [mixed
$nullValue = null], [boolean
$calculateFormulas = true], [boolean
$formatData = true], [boolean
$returnCellRef = false])
|
|
Create array from a range of cells
Tags:
Parameters:
method protectCells [line 1753]
PHPExcel_Worksheet protectCells(
[string
$pRange = 'A1'], [string
$pPassword = ''], [boolean
$pAlreadyHashed = false])
|
|
Set protection on a cell range
Tags:
Parameters:
method protectCellsByColumnAndRow [line 1778]
PHPExcel_Worksheet protectCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 1], [int
$pColumn2 = 0], [int
$pRow2 = 1], [string
$pPassword = ''], [boolean
$pAlreadyHashed = false])
|
|
Set protection on a cell range by using numeric cell coordinates
Tags:
Parameters:
method rangeToArray [line 2384]
array rangeToArray(
[string
$pRange = 'A1'], [mixed
$nullValue = null], [boolean
$calculateFormulas = true], [boolean
$formatData = true], [boolean
$returnCellRef = false])
|
|
Create array from a range of cells
Tags:
Parameters:
method rebindParent [line 748]
Re-bind parent
Tags:
Parameters:
method refreshColumnDimensions [line 616]
Refresh column dimensions
Tags:
method refreshRowDimensions [line 635]
Refresh row dimensions
Tags:
method removeAutoFilter [line 1884]
method removeColumn [line 2026]
Remove a column, updating all possible related data
Tags:
Parameters:
method removeColumnByIndex [line 2045]
Remove a column, updating all possible related data
Tags:
Parameters:
method removeConditionalStyles [line 1381]
Removes conditional styles for a cell
Tags:
Parameters:
method removeRow [line 2008]
Delete a row, updating all possible related data
Tags:
Parameters:
method resetTabColor [line 2739]
method setAutoFilter [line 1850]
Set AutoFilter
Tags:
Parameters:
method setAutoFilterByColumnAndRow [line 1870]
PHPExcel_Worksheet setAutoFilterByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 1], [int
$pColumn2 = 0], [int
$pRow2 = 1])
|
|
Set Autofilter Range by using numeric cell coordinates
Tags:
Parameters:
method setBreak [line 1587]
PHPExcel_Worksheet setBreak(
[string
$pCell = 'A1'], [int
$pBreak = PHPExcel_Worksheet::BREAK_NONE])
|
|
Set break on a cell
Tags:
Parameters:
method setBreakByColumnAndRow [line 1610]
PHPExcel_Worksheet setBreakByColumnAndRow(
[integer
$pColumn = 0], [integer
$pRow = 1], [integer
$pBreak = PHPExcel_Worksheet::BREAK_NONE])
|
|
Set break on a cell by using numeric cell coordinates
Tags:
Parameters:
method setCellValue [line 1027]
Set a cell value
Tags:
Parameters:
method setCellValueByColumnAndRow [line 1042]
PHPExcel_Worksheet|PHPExcel_Cell setCellValueByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 1], [mixed
$pValue = null], [bool
$returnCell = false])
|
|
Set a cell value by using numeric cell coordinates
Tags:
Parameters:
method setCellValueExplicit [line 1057]
PHPExcel_Worksheet|PHPExcel_Cell setCellValueExplicit(
[string
$pCoordinate = 'A1'], [mixed
$pValue = null], [string
$pDataType = PHPExcel_Cell_DataType::TYPE_STRING], [bool
$returnCell = false])
|
|
Set a cell value
Tags:
Parameters:
method setCellValueExplicitByColumnAndRow [line 1074]
PHPExcel_Worksheet|PHPExcel_Cell setCellValueExplicitByColumnAndRow(
[string
$pColumn = 0], [string
$pRow = 1], [mixed
$pValue = null], [string
$pDataType = PHPExcel_Cell_DataType::TYPE_STRING], [bool
$returnCell = false])
|
|
Set a cell value by using numeric cell coordinates
Tags:
Parameters:
method setComments [line 2169]
Set comments array for the entire sheet.
Tags:
Parameters:
method setConditionalStyles [line 1404]
PHPExcel_Worksheet setConditionalStyles(
[$pCoordinate
$pCoordinate = 'A1'], $pValue
$pValue)
|
|
Set conditional styles
Tags:
Parameters:
method setDataValidation [line 2662]
PHPExcel_Worksheet setDataValidation(
[string
$pCellCoordinate = 'A1'], [PHPExcel_Cell_DataValidation
$pDataValidation = null])
|
|
Set data validation
Tags:
Parameters:
method setDefaultStyle [line 1318]
Set default style - should only be used by PHPExcel_IReader implementations!
Tags:
Parameters:
method setHeaderFooter [line 917]
Set page header/footer
Tags:
Parameters:
method setHyperlink [line 2607]
PHPExcel_Worksheet setHyperlink(
[string
$pCellCoordinate = 'A1'], [PHPExcel_Cell_Hyperlink
$pHyperlink = null])
|
|
Set hyperlnk
Tags:
Parameters:
method setMergeCells [line 1737]
void setMergeCells(
[array
$pValue = array()])
|
|
Set merge cells array for the entire sheet. Use instead mergeCells() to merge a single cell range.
Tags:
Parameters:
method setPageMargins [line 895]
Set page margins
Tags:
Parameters:
method setPageSetup [line 873]
Set page setup
Tags:
Parameters:
method setPrintGridlines [line 2088]
Set print gridlines
Tags:
Parameters:
method setProtection [line 961]
Set Protection
Tags:
Parameters:
method setRightToLeft [line 2323]
Set right-to-left
Tags:
Parameters:
method setSelectedCell [line 2256]
Selected cell
Tags:
Parameters:
method setSelectedCellByColumnAndRow [line 2303]
Selected cell by using numeric cell coordinates
Tags:
Parameters:
method setSelectedCells [line 2268]
Select a range of cells.
Tags:
Parameters:
method setSharedStyle [line 1433]
PHPExcel_Worksheet setSharedStyle(
[PHPExcel_Style
$pSharedCellStyle = null], [string
$pRange = ''])
|
|
Set shared cell style to a range of cells Please note that this will overwrite existing cell styles for cells in range!
Tags:
Parameters:
method setSheetState [line 852]
PHPExcel_Worksheet setSheetState(
[string
$value = PHPExcel_Worksheet::SHEETSTATE_VISIBLE])
|
|
Set sheet state
Tags:
Parameters:
method setSheetView [line 939]
Set sheet view
Tags:
Parameters:
method setShowGridlines [line 2068]
Set show gridlines
Tags:
Parameters:
method setShowRowColHeaders [line 2108]
Set show row and column headers
Tags:
Parameters:
method setShowSummaryBelow [line 2128]
Set show summary below
Tags:
Parameters:
method setShowSummaryRight [line 2148]
Set show summary right
Tags:
Parameters:
method setTitle [line 783]
PHPExcel_Worksheet setTitle(
[string
$pValue = 'Worksheet'], [string
$updateFormulaCellReferences = true])
|
|
Set title
Tags:
Parameters:
method shrinkRangeToFit [line 2699]
string shrinkRangeToFit(
string
$range)
|
|
Accepts a range, returning it as a range that falls within the current highest row and column of the worksheet
Tags:
Parameters:
method sortCellCollection [line 452]
Sort collection of cells
Tags:
method toArray [line 2477]
array toArray(
[mixed
$nullValue = null], [boolean
$calculateFormulas = true], [boolean
$formatData = true], [boolean
$returnCellRef = false])
|
|
Create array from worksheet
Tags:
Parameters:
method unfreezePane [line 1943]
method unmergeCells [line 1687]
Remove merge on a cell range
Tags:
Parameters:
method unmergeCellsByColumnAndRow [line 1715]
PHPExcel_Worksheet unmergeCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 1], [int
$pColumn2 = 0], [int
$pRow2 = 1])
|
|
Remove merge on a cell range by using numeric cell coordinates
Tags:
Parameters:
method unprotectCells [line 1791]
Remove protection on a cell range
Tags:
Parameters:
method unprotectCellsByColumnAndRow [line 1816]
PHPExcel_Worksheet unprotectCellsByColumnAndRow(
[int
$pColumn1 = 0], [int
$pRow1 = 1], [int
$pColumn2 = 0], [int
$pRow2 = 1], [string
$pPassword = ''], [boolean
$pAlreadyHashed = false])
|
|
Remove protection on a cell range by using numeric cell coordinates
Tags:
Parameters:
method __clone [line 2771]
Implement PHP __clone to create a deep clone, not just a shallow copy.
Tags:
Class Constants
|
|