A notes master in a presentation.
Notes masters define the default text styles and page elements for all notes pages. Notes masters are read-only.
Methods
Method | Return type | Brief description |
---|---|---|
Group[]
|
Returns the list of Group
objects on the page. |
|
Image[]
|
Returns the list of Image
objects on the page. |
|
Line[]
|
Returns the list of Line
objects on the page. |
|
String
|
Gets the unique ID for the page. | |
Page
|
Returns the Page
on the page with the given ID, or null
if none exists. |
|
Page
|
Returns the list of Page
objects rendered on the page. |
|
Page
|
Returns the placeholder Page
object for a specified Placeholder
or null
if a matching placeholder is not present. |
|
Page
|
Returns the placeholder Page
object for a specified Placeholder
and
a placeholder index, or null
if the placeholder is not present. |
|
Page
|
Returns the list of placeholder Page
objects in the page. |
|
Shape[]
|
Returns the list of Shape
objects on the page. |
|
Sheets
|
Returns the list of Sheets
objects on the page. |
|
Table[]
|
Returns the list of Table
objects on the page. |
|
Video[]
|
Returns the list of Video
objects on the page. |
|
Word
|
Returns the list of Word
objects on the page. |
Detailed documentation
get
Groups()
get
Images()
get
Lines()
get
Object
Id()
Gets the unique ID for the page. Object IDs used by pages and page elements share the same namespace.
Return
String
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get
Page
Element
By
Id(id)
Returns the Page
on the page with the given ID, or null
if none exists.
Parameters
Name | Type | Description |
---|---|---|
id
|
String
|
The ID of the page element that is being retrieved. |
Return
Page
— The page element with the given ID.
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get
Page
Elements()
Returns the list of Page
objects rendered on the page.
Return
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get
Placeholder(placeholderType)
Returns the placeholder Page
object for a specified Placeholder
or null
if a matching placeholder is not present.
If there are multiple placeholders with the same type, it returns the one with minimal placeholder index. If there are multiple matching placeholders with the same index, it returns the first placeholder from the page's page elements collection.
const slide = SlidesApp . getActivePresentation (). getSlides ()[ 0 ]; const placeholder = slide . getPlaceholder ( SlidesApp . PlaceholderType . CENTERED_TITLE , );
Parameters
Name | Type | Description |
---|---|---|
placeholder
|
Placeholder
|
Return
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get
Placeholder(placeholderType, placeholderIndex)
Returns the placeholder Page
object for a specified Placeholder
and
a placeholder index, or null
if the placeholder is not present.
If there are multiple placeholders with the same type and index, it returns the first placeholder from the page's page elements collection.
const slide = SlidesApp . getActivePresentation (). getSlides ()[ 0 ]; const placeholder = slide . getPlaceholder ( SlidesApp . PlaceholderType . CENTERED_TITLE , 0 , );
Parameters
Name | Type | Description |
---|---|---|
placeholder
|
Placeholder
|
|
placeholder
|
Integer
|
Return
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get
Placeholders()
Returns the list of placeholder Page
objects in the page.
const master = SlidesApp . getActivePresentation (). getMasters ()[ 0 ]; Logger . log ( `Number of placeholders in the master: ${ master . getPlaceholders (). length } ` , );
Return
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations
get
Shapes()
get
Sheets
Charts()
Returns the list of Sheets
objects on the page.
Return
Authorization
Scripts that use this method require authorization with one or more of the following scopes :
-
https://www.googleapis.com/auth/presentations.currentonly
-
https://www.googleapis.com/auth/presentations