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
Verwendet von
- PowerPoint: Ausführen
- PowerPoint.Application: Kontext
- PowerPoint.Presentation: Kontext
- PowerPoint.Shape: Kontext
- PowerPoint.ShapeCollection: kontext
- PowerPoint.Slide: Kontext
- PowerPoint.SlideCollection: Kontext
- PowerPoint.SlideLayout: kontext
- PowerPoint.SlideLayoutCollection: kontext
- PowerPoint.SlideMaster: Kontext
- PowerPoint.SlideMasterCollection: kontext
- PowerPoint.Tag: Kontext
- PowerPoint.TagCollection: 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 |
Details zum Konstruktor
(constructor)(url)
Erstellt eine neue instance der RequestContext -Klasse
constructor(url?: string);
Parameter
- url
-
string