Word.RequestContext class
Das RequestContext-Objekt erleichtert Anforderungen an die Word-Anwendung. Da das Office-Add-In und die Word-Anwendung in zwei verschiedenen Prozessen ausgeführt werden, ist der Anforderungskontext erforderlich, um vom Add-In aus Zugriff auf das Word-Objektmodell zu erhalten.
Hinweise
Verwendet von
- Word: Ausführen
- Word. Anwendung: Kontext
- Word. Text:Kontext
- Word. Kommentar: Kontext
- Word. CommentCollection: Kontext
- Word. CommentContentRange: Kontext
- Word. CommentReply: context
- Word. CommentReplyCollection: Kontext
- Word. ContentControl: Kontext
- Word. ContentControlCollection: Kontext
- Word. CustomProperty: Kontext
- Word. CustomPropertyCollection: Kontext
- Word. CustomXmlPart: Kontext
- Word. CustomXmlPartCollection: Kontext
- Word. CustomXmlPartScopedCollection: Kontext
- Word. Dokument: Kontext
- Word. DocumentCreated: Kontext
- Word. DocumentProperties: Kontext
- Word. Feld: Kontext
- Word. FieldCollection: context
- Word. Schriftart: Kontext
- Word. InlinePicture: context
- Word. InlinePictureCollection: Kontext
- Word. Liste: Kontext
- Word. ListCollection: Kontext
- Word. ListItem: context
- Word. Absatz: Kontext
- Word. ParagraphCollection: Kontext
- Word. Bereich: Kontext
- Word. RangeCollection: Kontext
- Word. SearchOptions: Kontext
- Word. Abschnitt: Kontext
- Word. SectionCollection: Kontext
- Word. Einstellung: Kontext
- Word. SettingCollection: context
- Word. Stil: Kontext
- Word. Tabelle: Kontext
- Word. TableBorder: Kontext
- Word. TableCell: Kontext
- Word. TableCellCollection: Kontext
- Word. TableCollection: Kontext
- Word. TableRow: Kontext
- Word. TableRowCollection: Kontext
Beispiele
// *.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...
});
Konstruktoren
| (constructor)(url) | Erstellt eine neue Instance der |
Eigenschaften
| application | |
| document |
Details zum Konstruktor
(constructor)(url)
Erstellt eine neue Instance der RequestContext Klasse
constructor(url?: string);
Parameter
- url
-
string