PowerPoint.RequestContext class
The RequestContext object facilitates requests to the PowerPoint application. Since the Office add-in and the PowerPoint application run in two different processes, the request context is required to get access to the PowerPoint object model from the add-in.
Remarks
Used by
- PowerPoint: run
- PowerPoint.Application: context
- PowerPoint.Binding: context
- PowerPoint.BindingCollection: context
- PowerPoint.Border: context
- PowerPoint.Borders: context
- PowerPoint.BulletFormat: context
- PowerPoint.CustomProperty: context
- PowerPoint.CustomPropertyCollection: context
- PowerPoint.CustomXmlPart: context
- PowerPoint.CustomXmlPartCollection: context
- PowerPoint.CustomXmlPartScopedCollection: context
- PowerPoint.DocumentProperties: context
- PowerPoint.Hyperlink: context
- PowerPoint.HyperlinkCollection: context
- PowerPoint.Margins: context
- PowerPoint.ParagraphFormat: context
- PowerPoint.PlaceholderFormat: context
- PowerPoint.Presentation: context
- PowerPoint.Shape: context
- PowerPoint.ShapeCollection: context
- PowerPoint.ShapeFill: context
- PowerPoint.ShapeFont: context
- PowerPoint.ShapeGroup: context
- PowerPoint.ShapeLineFormat: context
- PowerPoint.ShapeScopedCollection: context
- PowerPoint.Slide: context
- PowerPoint.SlideCollection: context
- PowerPoint.SlideLayout: context
- PowerPoint.SlideLayoutCollection: context
- PowerPoint.SlideMaster: context
- PowerPoint.SlideMasterCollection: context
- PowerPoint.SlideScopedCollection: context
- PowerPoint.Table: context
- PowerPoint.TableCell: context
- PowerPoint.TableCellCollection: context
- PowerPoint.TableColumn: context
- PowerPoint.TableColumnCollection: context
- PowerPoint.TableRow: context
- PowerPoint.TableRowCollection: context
- PowerPoint.TableStyleSettings: context
- PowerPoint.Tag: context
- PowerPoint.TagCollection: context
- PowerPoint.TextFrame: context
- PowerPoint.TextRange: context
Examples
// *.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...
});
Constructors
| (constructor)(url) | Constructs a new instance of the |
Properties
| application | |
| presentation |
Constructor Details
(constructor)(url)
Constructs a new instance of the RequestContext class
constructor(url?: string);
Parameters
- url
-
string