getSlideIndex
The slides are compared by their object id, so a slide read earlier is still recognised. A slide that belongs to another presentation, or has since been removed, gives null.
The slide comes first and the presentation is optional, the way getSlideByIndex and getSheetByIndex read: without one the active presentation is used, which is what a script bound to a deck already has. A standalone script has none, and then the answer is null rather than an error.
Parameters
Parameter | Type | Description |
|---|---|---|
|
| The slide to look for. |
|
| The presentation to look in. Without it the active presentation is used. |
Returns
number | null — the zero-based position, or null when the slide is not there.
Examples
In the active presentation
See also
Source
This documentation was generated with AI (Claude) from the library's source code.