PowerPoint.DocumentProperties class

プレゼンテーションのプロパティを表します。

Extends

プロパティ

author

プレゼンテーションの作成者。

category

プレゼンテーションのカテゴリ。

comments

プレゼンテーションのメタデータの [コメント] フィールド。 これらは、スライドで作成されたコメントとは関係ありません。

company

プレゼンテーションの会社。

context

オブジェクトに関連付けられている要求コンテキスト。 これにより、アドインのプロセスが Office ホスト アプリケーションのプロセスに接続されます。

creationDate

プレゼンテーションの作成日。

customProperties

プレゼンテーションのカスタム プロパティのコレクション。

keywords

プレゼンテーションのキーワード。

lastAuthor

プレゼンテーションの最終作成者。

manager

プレゼンテーションのマネージャー。

revisionNumber

プレゼンテーションのリビジョン番号。

subject

プレゼンテーションの件名。

title

プレゼンテーションのタイトル。

メソッド

load(options)

オブジェクトの指定されたプロパティを読み込むコマンドを待ち行列に入れます。 プロパティを読み取る前に、context.sync() を呼び出す必要があります。

load(propertyNames)

オブジェクトの指定されたプロパティを読み込むコマンドを待ち行列に入れます。 プロパティを読み取る前に、context.sync() を呼び出す必要があります。

load(propertyNamesAndPaths)

オブジェクトの指定されたプロパティを読み込むコマンドを待ち行列に入れます。 プロパティを読み取る前に、context.sync() を呼び出す必要があります。

toJSON()

API オブジェクトが JSON.stringify() に渡されるときに、より有用な出力を提供するために、JavaScript toJSON() メソッドをオーバーライドします。 (次に、JSON.stringify渡されたオブジェクトの toJSON メソッドを呼び出します)。元の PowerPoint.DocumentProperties オブジェクトが API オブジェクトであるのに対し、 toJSON メソッドは、元のオブジェクトから読み込まれた子プロパティの浅いコピーを含むプレーンな JavaScript オブジェクト ( PowerPoint.Interfaces.DocumentPropertiesData と型指定) を返します。

プロパティの詳細

author

プレゼンテーションの作成者。

author: string;

プロパティ値

string

注釈

API セット: PowerPointApi 1.7

category

プレゼンテーションのカテゴリ。

category: string;

プロパティ値

string

注釈

API セット: PowerPointApi 1.7

comments

プレゼンテーションのメタデータの [コメント] フィールド。 これらは、スライドで作成されたコメントとは関係ありません。

comments: string;

プロパティ値

string

注釈

API セット: PowerPointApi 1.7

company

プレゼンテーションの会社。

company: string;

プロパティ値

string

注釈

API セット: PowerPointApi 1.7

context

オブジェクトに関連付けられている要求コンテキスト。 これにより、アドインのプロセスが Office ホスト アプリケーションのプロセスに接続されます。

context: RequestContext;

プロパティ値

creationDate

プレゼンテーションの作成日。

readonly creationDate: Date;

プロパティ値

Date

注釈

API セット: PowerPointApi 1.7

customProperties

プレゼンテーションのカスタム プロパティのコレクション。

readonly customProperties: PowerPoint.CustomPropertyCollection;

プロパティ値

注釈

API セット: PowerPointApi 1.7

keywords

プレゼンテーションのキーワード。

keywords: string;

プロパティ値

string

注釈

API セット: PowerPointApi 1.7

lastAuthor

プレゼンテーションの最終作成者。

readonly lastAuthor: string;

プロパティ値

string

注釈

API セット: PowerPointApi 1.7

manager

プレゼンテーションのマネージャー。

manager: string;

プロパティ値

string

注釈

API セット: PowerPointApi 1.7

revisionNumber

プレゼンテーションのリビジョン番号。

revisionNumber: number;

プロパティ値

number

注釈

API セット: PowerPointApi 1.7

subject

プレゼンテーションの件名。

subject: string;

プロパティ値

string

注釈

API セット: PowerPointApi 1.7

title

プレゼンテーションのタイトル。

title: string;

プロパティ値

string

注釈

API セット: PowerPointApi 1.7

メソッドの詳細

load(options)

オブジェクトの指定されたプロパティを読み込むコマンドを待ち行列に入れます。 プロパティを読み取る前に、context.sync() を呼び出す必要があります。

load(options?: PowerPoint.Interfaces.DocumentPropertiesLoadOptions): PowerPoint.DocumentProperties;

パラメーター

options
PowerPoint.Interfaces.DocumentPropertiesLoadOptions

読み込むオブジェクトのプロパティのオプションを指定します。

返品

load(propertyNames)

オブジェクトの指定されたプロパティを読み込むコマンドを待ち行列に入れます。 プロパティを読み取る前に、context.sync() を呼び出す必要があります。

load(propertyNames?: string | string[]): PowerPoint.DocumentProperties;

パラメーター

propertyNames

string | string[]

読み込むプロパティを指定するコンマ区切りの文字列または文字列の配列。

返品

load(propertyNamesAndPaths)

オブジェクトの指定されたプロパティを読み込むコマンドを待ち行列に入れます。 プロパティを読み取る前に、context.sync() を呼び出す必要があります。

load(propertyNamesAndPaths?: {
            select?: string;
            expand?: string;
        }): PowerPoint.DocumentProperties;

パラメーター

propertyNamesAndPaths

{ select?: string; expand?: string; }

propertyNamesAndPaths.select は読み込むプロパティを指定するコンマ区切りの文字列であり、 propertyNamesAndPaths.expand は読み込むナビゲーションのプロパティを指定するコンマ区切りの文字列です。

返品

toJSON()

API オブジェクトが JSON.stringify() に渡されるときに、より有用な出力を提供するために、JavaScript toJSON() メソッドをオーバーライドします。 (次に、JSON.stringify渡されたオブジェクトの toJSON メソッドを呼び出します)。元の PowerPoint.DocumentProperties オブジェクトが API オブジェクトであるのに対し、 toJSON メソッドは、元のオブジェクトから読み込まれた子プロパティの浅いコピーを含むプレーンな JavaScript オブジェクト ( PowerPoint.Interfaces.DocumentPropertiesData と型指定) を返します。

toJSON(): PowerPoint.Interfaces.DocumentPropertiesData;

返品