Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
PowerPoint.RequestContext class
- Package:
- powerpoint
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.Adjustments: context
- 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.Graphic: context
- PowerPoint.Hyperlink: context
- PowerPoint.HyperlinkCollection: context
- PowerPoint.HyperlinkScopedCollection: context
- PowerPoint.Margins: context
- PowerPoint.PageSetup: context
- PowerPoint.ParagraphFormat: context
- PowerPoint.PlaceholderFormat: context
- PowerPoint.Presentation: context
- PowerPoint.SensitivityLabel: context
- PowerPoint.SensitivityLabelDetails: context
- PowerPoint.SensitivityLabelDetailsCollection: context
- PowerPoint.SensitivityLabelsCatalog: 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.SlideBackground: context
- PowerPoint.SlideBackgroundFill: context
- PowerPoint.SlideBackgroundGradientFill: context
- PowerPoint.SlideBackgroundPatternFill: context
- PowerPoint.SlideBackgroundPictureOrTextureFill: context
- PowerPoint.SlideBackgroundSolidFill: context
- PowerPoint.SlideCollection: context
- PowerPoint.SlideLayout: context
- PowerPoint.SlideLayoutBackground: context
- PowerPoint.SlideLayoutCollection: context
- PowerPoint.SlideMaster: context
- PowerPoint.SlideMasterBackground: 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
- PowerPoint.ThemeColorScheme: 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 |
| sensitivityLabelsCatalog |
Constructor Details
(constructor)(url)
Constructs a new instance of the RequestContext class
constructor(url?: string);
Parameters
- url
-
string
Property Details
application
presentation
sensitivityLabelsCatalog
readonly sensitivityLabelsCatalog: any;
Property Value
any
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Office Add-ins
Feedback
Was this page helpful?
