Word.RequestContext class

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

Extends

注釈

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

コンストラクター

(constructor)(url)

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

プロパティ

application

[ API set: WordApi 1.3 ] *

document

コンストラクターの詳細

(constructor)(url)

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

constructor(url?: string);

パラメーター

url

string

プロパティの詳細

application

[ API set: WordApi 1.3 ] *

readonly application: Application;

プロパティ値

document

readonly document: Document;

プロパティ値