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: 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.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
示例
// *.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