The item at the given index, or undefined if there is none — wb.getWorksheets()[0].
ReadonlyisFor runtime type checking.
ReadonlyisFor runtime type checking.
ReadonlylengthThe number of items — the same as getCount.
Iterates the collection's items.
The unfiltered walk — for (const sheet of wb.getWorksheets()). 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.
Adds a chart of source, its series made from the cells by Excel's rules, as Insert Chart
makes them: which cells are labels, which way the series run, and which labels name them.
The cells to chart: a range, or an address. A bare address is on this sheet; several areas are separated by commas. One cell charts the block of cells around it, up to blank rows and columns.
Optionaloptions: IChart.AddOptions
The type, the direction of the series, and where the chart goes.
The chart, once its kind has loaded. The insert is one undoable step.
Add Listeners.
Optionaloptions: IListener.OptionsReturns the item at the given index, or undefined if there is none.
The position in iteration order. A negative index counts back from the end, as
Array.prototype.at does.
Returns the chart with the given name, or null if there is none.
The name of the chart. This is case insensitive.
Returns the charts, in the order of their movables.
Optionaloptions: ICollection.GetItemsOptionsReturns the index of the item in iteration order, or -1 if it is not in the collection.
The item to find.
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.
Returns the items as a fresh array, in iteration order.
Holds the charts on a sheet.
Remarks
A view over the sheet's movables: a chart is the content of a movable, and the movable is what places it — see IChart.getMovable.