VISIBILITY_VISIBLE
VISIBILITY_VISIBLE = 'visible'
$properties : \PhpOffice\PhpSpreadsheet\Document\Properties
Document properties.
$security : \PhpOffice\PhpSpreadsheet\Document\Security
Document security.
$workSheetCollection : array<mixed,\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet>
Collection of Worksheet objects.
$calculationEngine : \PhpOffice\PhpSpreadsheet\Calculation\Calculation
Calculation Engine.
$namedRanges : array<mixed,\PhpOffice\PhpSpreadsheet\NamedRange>
Named ranges.
$cellXfSupervisor : \PhpOffice\PhpSpreadsheet\Style\Style
CellXf supervisor.
$cellXfCollection : array<mixed,\PhpOffice\PhpSpreadsheet\Style\Style>
CellXf collection.
$cellStyleXfCollection : array<mixed,\PhpOffice\PhpSpreadsheet\Style\Style>
CellStyleXf collection.
getSheetByCodeName(string $pName) : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Get sheet by code name. Warning : sheet don't have always a code name !
string | $pName | Sheet name |
getCalculationEngine() : \PhpOffice\PhpSpreadsheet\Calculation\Calculation
Return the calculation engine for this worksheet.
getProperties() : \PhpOffice\PhpSpreadsheet\Document\Properties
Get properties.
setProperties(\PhpOffice\PhpSpreadsheet\Document\Properties $pValue)
Set properties.
\PhpOffice\PhpSpreadsheet\Document\Properties | $pValue |
getSecurity() : \PhpOffice\PhpSpreadsheet\Document\Security
Get security.
setSecurity(\PhpOffice\PhpSpreadsheet\Document\Security $pValue)
Set security.
\PhpOffice\PhpSpreadsheet\Document\Security | $pValue |
getActiveSheet() : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Get active sheet.
createSheet(null|integer $sheetIndex = null) : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Create sheet and add it to this workbook.
null|integer | $sheetIndex | Index where sheet should go (0,1,..., or null for last) |
addSheet(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pSheet, null|integer $iSheetIndex = null) : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Add sheet.
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $pSheet | |
null|integer | $iSheetIndex | Index where sheet should go (0,1,..., or null for last) |
getSheet(integer $pIndex) : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Get sheet by index.
integer | $pIndex | Sheet index |
getAllSheets() : array<mixed,\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet>
Get all sheets.
getSheetByName(string $pName) : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Get sheet by name.
string | $pName | Sheet name |
getIndex(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pSheet) : integer
Get index for sheet.
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $pSheet |
index
setActiveSheetIndex(integer $pIndex) : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Set active sheet index.
integer | $pIndex | Active sheet index |
setActiveSheetIndexByName(string $pValue) : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Set active sheet index by name.
string | $pValue | Sheet title |
addExternalSheet(\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pSheet, null|integer $iSheetIndex = null) : \PhpOffice\PhpSpreadsheet\Worksheet\Worksheet
Add external sheet.
\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $pSheet | External sheet to add |
null|integer | $iSheetIndex | Index where sheet should go (0,1,..., or null for last) |
getNamedRanges() : array<mixed,\PhpOffice\PhpSpreadsheet\NamedRange>
Get named ranges.
addNamedRange(\PhpOffice\PhpSpreadsheet\NamedRange $namedRange) : boolean
Add named range.
\PhpOffice\PhpSpreadsheet\NamedRange | $namedRange |
getNamedRange(string $namedRange, null|\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pSheet = null) : null|\PhpOffice\PhpSpreadsheet\NamedRange
Get named range.
string | $namedRange | |
null|\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $pSheet | Scope. Use null for global scope |
removeNamedRange(string $namedRange, null|\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet $pSheet = null) : \PhpOffice\PhpSpreadsheet\Spreadsheet
Remove named range.
string | $namedRange | |
null|\PhpOffice\PhpSpreadsheet\Worksheet\Worksheet | $pSheet | scope: use null for global scope |
getWorksheetIterator() : \PhpOffice\PhpSpreadsheet\Worksheet\Iterator
Get worksheet iterator.
copy() : \PhpOffice\PhpSpreadsheet\Spreadsheet
Copy workbook (!= clone!).
getCellXfCollection() : array<mixed,\PhpOffice\PhpSpreadsheet\Style\Style>
Get the workbook collection of cellXfs.
getCellXfByIndex(integer $pIndex) : \PhpOffice\PhpSpreadsheet\Style\Style
Get cellXf by index.
integer | $pIndex |
getCellXfByHashCode(string $pValue) : false|\PhpOffice\PhpSpreadsheet\Style\Style
Get cellXf by hash code.
string | $pValue |
cellXfExists(\PhpOffice\PhpSpreadsheet\Style\Style $pCellStyle) : boolean
Check if style exists in style collection.
\PhpOffice\PhpSpreadsheet\Style\Style | $pCellStyle |
getDefaultStyle() : \PhpOffice\PhpSpreadsheet\Style\Style
Get default style.
addCellXf(\PhpOffice\PhpSpreadsheet\Style\Style $style)
Add a cellXf to the workbook.
\PhpOffice\PhpSpreadsheet\Style\Style | $style |
getCellXfSupervisor() : \PhpOffice\PhpSpreadsheet\Style\Style
Get the cellXf supervisor.
getCellStyleXfCollection() : array<mixed,\PhpOffice\PhpSpreadsheet\Style\Style>
Get the workbook collection of cellStyleXfs.
getCellStyleXfByIndex(integer $pIndex) : \PhpOffice\PhpSpreadsheet\Style\Style
Get cellStyleXf by index.
integer | $pIndex | Index to cellXf |
getCellStyleXfByHashCode(string $pValue) : false|\PhpOffice\PhpSpreadsheet\Style\Style
Get cellStyleXf by hash code.
string | $pValue |
addCellStyleXf(\PhpOffice\PhpSpreadsheet\Style\Style $pStyle)
Add a cellStyleXf to the workbook.
\PhpOffice\PhpSpreadsheet\Style\Style | $pStyle |
setVisibility(string $visibility)
Set the visibility status of the workbook.
Valid values are:
string | $visibility | visibility status of the workbook |
if the given value is invalid
setTabRatio(integer $tabRatio)
Set the ratio between the workbook tabs bar and the horizontal scroll bar TabRatio is assumed to be out of 1000 of the horizontal window width.
integer | $tabRatio | Ratio between the tabs bar and the horizontal scroll bar |
if the given value is invalid