Class NotesMaster

NotesMaster

プレゼンテーションのメモマスター。

メモマスターでは、すべてのメモページのデフォルトのテキスト スタイルとページ要素を定義します。備考 読み取り専用です。

メソッド

メソッド戻り値の型概要
getGroups()Group[]ページ上の Group オブジェクトのリストを返します。
getImages()Image[]ページ上の Image オブジェクトのリストを返します。
getLines()Line[]ページ上の Line オブジェクトのリストを返します。
getObjectId()Stringページの一意の ID を取得します。
getPageElementById(id)PageElement指定された ID を持つページの PageElement を返します。存在しない場合は null を返します。
getPageElements()PageElement[]ページにレンダリングされた PageElement オブジェクトのリストを返します。
getPlaceholder(placeholderType)PageElement指定された PlaceholderType のプレースホルダ PageElement オブジェクトを返します。 一致するプレースホルダが存在しない場合は null
getPlaceholder(placeholderType, placeholderIndex)PageElement指定された PlaceholderType のプレースホルダ PageElement オブジェクトを返します。 プレースホルダ インデックス。プレースホルダが存在しない場合は null
getPlaceholders()PageElement[]ページ上のプレースホルダ PageElement オブジェクトのリストを返します。
getShapes()Shape[]ページ上の Shape オブジェクトのリストを返します。
getSheetsCharts()SheetsChart[]ページ上の SheetsChart オブジェクトのリストを返します。
getTables()Table[]ページ上の Table オブジェクトのリストを返します。
getVideos()Video[]ページ上の Video オブジェクトのリストを返します。
getWordArts()WordArt[]ページ上の WordArt オブジェクトのリストを返します。

詳細なドキュメント

getGroups()

ページ上の Group オブジェクトのリストを返します。

戻る

Group[]

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getImages()

ページ上の Image オブジェクトのリストを返します。

戻る

Image[]

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getLines()

ページ上の Line オブジェクトのリストを返します。

戻る

Line[]

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getObjectId()

ページの一意の ID を取得します。ページとページ要素で使用されるオブジェクト ID は同じです Namespace があります。

戻る

String

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getPageElementById(id)

指定された ID を持つページの PageElement を返します。存在しない場合は null を返します。

パラメータ

名前説明
idString取得されるページ要素の ID。

戻る

PageElement - 指定された ID のページ要素。

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getPageElements()

ページにレンダリングされた PageElement オブジェクトのリストを返します。

戻る

PageElement[]

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getPlaceholder(placeholderType)

指定された PlaceholderType のプレースホルダ PageElement オブジェクトを返します。 一致するプレースホルダが存在しない場合は null

同じ型のプレースホルダが複数ある場合は、最小のものを返します。 使用します。同じインデックスを持つ一致するプレースホルダが複数ある場合は、 ページのページ要素コレクションの最初のプレースホルダ。

var slide = SlidesApp.getActivePresentation().getSlides()[0];
var placeholder = slide.getPlaceholder(SlidesApp.PlaceholderType.CENTERED_TITLE);

パラメータ

名前説明
placeholderTypePlaceholderType

戻る

PageElement

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getPlaceholder(placeholderType, placeholderIndex)

指定された PlaceholderType のプレースホルダ PageElement オブジェクトを返します。 プレースホルダ インデックス。プレースホルダが存在しない場合は null

同じ型とインデックスを持つプレースホルダが複数ある場合は、最初の ページのページ要素コレクションのプレースホルダ。

var slide = SlidesApp.getActivePresentation().getSlides()[0];
var placeholder = slide.getPlaceholder(SlidesApp.PlaceholderType.CENTERED_TITLE, 0);

パラメータ

名前説明
placeholderTypePlaceholderType
placeholderIndexInteger

戻る

PageElement

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getPlaceholders()

ページ上のプレースホルダ PageElement オブジェクトのリストを返します。

var master = SlidesApp.getActivePresentation().getMasters()[0];
Logger.log('Number of placeholders in the master: ' + master.getPlaceholders().length);

戻る

PageElement[]

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getShapes()

ページ上の Shape オブジェクトのリストを返します。

戻る

Shape[]

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getSheetsCharts()

ページ上の SheetsChart オブジェクトのリストを返します。

戻る

SheetsChart[]

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getTables()

ページ上の Table オブジェクトのリストを返します。

戻る

Table[]

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getVideos()

ページ上の Video オブジェクトのリストを返します。

戻る

Video[]

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations

getWordArts()

ページ上の WordArt オブジェクトのリストを返します。

戻る

WordArt[]

承認

このメソッドを使用するスクリプトには、次のスコープの 1 つ以上を使用した承認が必要です。

  • https://www.googleapis.com/auth/presentations.currentonly
  • https://www.googleapis.com/auth/presentations