PowerPoint.RequestContext class
Das RequestContext-Objekt erleichtert Anforderungen an die PowerPoint-Anwendung. Da das Office-Add-In und die PowerPoint-Anwendung in zwei verschiedenen Prozessen ausgeführt werden, ist der Anforderungskontext erforderlich, um über das Add-In Zugriff auf das PowerPoint-Objektmodell zu erhalten.
Hinweise
Beispiele
// *.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...
});
Konstruktoren
(constructor)(url) | Erstellt eine neue instance der |
Eigenschaften
application | |
presentation |
Details zum Konstruktor
(constructor)(url)
Erstellt eine neue instance der RequestContext
-Klasse
constructor(url?: string);
Parameter
- url
-
string