PowerPoint.RequestContext class
RequestContext 对象有助于请求 PowerPoint 应用程序。 由于 Office 加载项和 PowerPoint 应用程序在两个不同的进程中运行,因此需要请求上下文才能从加载项获取对 PowerPoint 对象模型的访问权限。
注解
使用方
- PowerPoint: 运行
- 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: 上下文
- PowerPoint.Hyperlink: 上下文
- 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.SensitivityLabelAbacAttribute: context
- PowerPoint.SensitivityLabelAbacAttributeValue: context
- PowerPoint.SensitivityLabelDetails: context
- PowerPoint.SensitivityLabelDetailsCollection: context
- PowerPoint.SensitivityLabelsCatalog: context
- PowerPoint.Shape: context
- PowerPoint.ShapeCollection: context
- PowerPoint.ShapeFill: 上下文
- PowerPoint.ShapeFont: context
- PowerPoint.ShapeGroup: context
- PowerPoint.ShapeLineFormat: context
- PowerPoint.ShapeScopedCollection: context
- PowerPoint.Slide: 上下文
- PowerPoint.SlideBackground: context
- PowerPoint.SlideBackgroundFill: 上下文
- 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: 上下文
- 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
示例
// *.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...
});
构造函数
| (constructor)(url) | 构造类的新 |
构造函数详细信息
(constructor)(url)
构造类的新 RequestContext 实例
constructor(url?: string);
参数
- url
-
string
属性详细信息
application
presentation
sensitivityLabelsCatalog
readonly sensitivityLabelsCatalog: any;
属性值
any