For runtime type checking.
For runtime type checking.
Iterates the collection's items.
The unfiltered walk — for (const sheet of wb.getSheets()). Every other iterable surface in
the SDK (ICellRange, ICellRegions, ICellRanges) reads this way, so a collection that did
not was a trap: for…of over one is the obvious line to write and it threw at runtime with
nothing in the types to warn first.
getItems remains the call that takes options — filtering, ordering, anything parameterized. This is sugar over the unfiltered case, not a replacement for it.
Add Listeners.
Optionaloptions: IListener.OptionsReturns the items in the collection.
Optionaloptions: INamedStyleCollection.GetItemsOptionsThe optioned call — filtering, ordering, anything parameterized — and a snapshot: the array returned does not follow later changes to the collection. For the unfiltered items as a plain array prefer toArray.
Returns true once the collection has been closed.
A closed collection is empty and announces nothing further. Collections that are closed by
their owner (the workbook's names, functions and modules, when the workbook closes) announce
it once with ICollection.Events.onClose; the others are never closed and always
return false.
Adds or updates a style.
The name, the style, and any of the other IStyle.NamedProperties.
If true the style is merged over the existing one of that name;
otherwise it replaces it.
The style as stored.
Implementation for INamedStyleCollection.
Remarks
A front over the StyleCollection's maps — the style collection keeps the definitions (they resolve against its theme) and this class keeps the API and the announcing.