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 vom Add-In aus Zugriff auf das PowerPoint-Objektmodell zu erhalten.
Hinweise
Verwendet von
- PowerPoint: Ausführen
- PowerPoint.Application: Kontext
- PowerPoint.Presentation: Kontext
- PowerPoint.Slide: Kontext
- PowerPoint.SlideCollection: Kontext
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 | |
| sensitivity |
Details zum Konstruktor
(constructor)(url)
Erstellt eine neue Instance der RequestContext Klasse
constructor(url?: string);
Parameter
- url
-
string
Details zur Eigenschaft
application
presentation
sensitivityLabelsCatalog
readonly sensitivityLabelsCatalog: any;
Eigenschaftswert
any