PowerPoint.RequestContext class

RequestContext オブジェクトは、PowerPoint アプリケーションへの要求を容易にします。 Office アドインとPowerPoint アプリケーションは 2 つの異なるプロセスで実行されるため、アドインからPowerPoint オブジェクト モデルにアクセスするには、要求コンテキストが必要です。

Extends

注釈

// *.run methods automatically create an OfficeExtension.ClientRequestContext
// object to work with the Office file.
await PowerPoint.run(async (context) => {
  const presentation = context.presentation;
  // Interact with the PowerPoint presentation...
});

コンストラクター

(constructor)(url)

RequestContext クラスの新しいインスタンスを構築します

プロパティ

application
presentation

コンストラクターの詳細

(constructor)(url)

RequestContext クラスの新しいインスタンスを構築します

constructor(url?: string);

パラメーター

url

string

プロパティの詳細

application

readonly application: Application;

プロパティ値

presentation

readonly presentation: Presentation;

プロパティ値