PowerPoint.RequestContext class
RequestContext オブジェクトは、PowerPoint アプリケーションへの要求を容易にします。 Office アドインとPowerPoint アプリケーションは 2 つの異なるプロセスで実行されるため、アドインからPowerPoint オブジェクト モデルにアクセスするには、要求コンテキストが必要です。
注釈
例
// *.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) |
|
プロパティ
| application | |
| presentation |
コンストラクターの詳細
(constructor)(url)
RequestContext クラスの新しいインスタンスを構築します
constructor(url?: string);
パラメーター
- url
-
string