ReadonlyisFor runtime type checking.
ReadonlyisFor 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 a resource to the movable collection.
Optionaloptions: IMovableCollection.AddOptions<any>
A new IMovable.
Add Listeners.
Optionaloptions: IListener.OptionsAdd a picture to the current sheet. Returns an IMovable with an Picture that can be used to manipulate the picture or remove it.
This can be either string to a url, a Resource or an IResource.AddOptions
Optionaloptions: IMovableCollection.AddOptions<any>
A Promise that will resolve to the new Movable.
Returns 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 movables that match the filter criteria.
Optionaloptions: IMovableCollection.GetItemsOptions
An Array of IMovable.
Groups movables of this collection into one: a new movable whose content is an IGroup
holding them as members, in their z-order, at the union of the boxes they occupy.
Two or more movables of this collection.
Optionaloptions: GroupOptions
The group's movable.
Returns 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.
Update all of the selected movable in a single transaction
Optionalaction: string
Holds a collection of IMovables.