powerpoint package

PowerPoint.Adjustments

表示形状的调整值。

PowerPoint.Application

表示管理演示文稿的 PowerPoint 应用程序。

PowerPoint.Binding

表示在演示文稿中定义的 Office.js 绑定。

PowerPoint.BindingCollection

表示属于演示文稿的所有绑定对象的集合。

PowerPoint.Border

表示表格单元格边框的属性。

PowerPoint.Borders

表示表格单元格的边框。

PowerPoint.BulletFormat

表示附加到 PowerPoint.ParagraphFormat 的文本的项目符号格式属性。

PowerPoint.CustomProperty

表示自定义属性。

PowerPoint.CustomPropertyCollection

自定义属性的集合。

PowerPoint.CustomXmlPart

表示自定义 XML 部件对象。

PowerPoint.CustomXmlPartCollection

自定义 XML 部分的集合。

PowerPoint.CustomXmlPartScopedCollection

自定义 XML 部分的作用域集合。 作用域集合是一些操作 (的结果,例如按命名空间筛选) 。 无法进一步限定范围的集合。

PowerPoint.DocumentProperties

表示演示属性。

PowerPoint.Graphic

表示 PowerPoint 中的图形对象。

PowerPoint.Hyperlink

表示单个超链接。

PowerPoint.HyperlinkCollection

表示超链接的集合。

PowerPoint.HyperlinkScopedCollection

表示超链接的范围集合。

PowerPoint.Margins

表示表格单元格的边距。

PowerPoint.PageSetup

表示演示文稿的页面设置信息。

PowerPoint.ParagraphFormat

表示附加到 PowerPoint.TextRange 的文本的段落格式属性。

PowerPoint.PlaceholderFormat

表示形状的 placeholder 属性。

PowerPoint.Presentation

Presentation对象是具有一张或多张载有演示文稿内容的幻灯片的顶层对象。 若要了解有关 PowerPoint 对象模型的详细信息,请参阅 PowerPoint JavaScript 对象模型

PowerPoint.RequestContext

RequestContext 对象有助于请求 PowerPoint 应用程序。 由于 Office 加载项和 PowerPoint 应用程序在两个不同的进程中运行,因此需要请求上下文才能从加载项获取对 PowerPoint 对象模型的访问权限。

PowerPoint.SensitivityLabel

表示演示文稿上的敏感度标签。

PowerPoint.SensitivityLabelAbacAttribute

表示基于属性的访问控制 (ABAC) 可在启用 ABAC 的敏感度标签上选择的属性。

PowerPoint.SensitivityLabelAbacAttributeValue

表示可应用于敏感度标签的基于属性的访问控制 (ABAC) 属性的单个可选值。

PowerPoint.SensitivityLabelDetails

表示 PowerPoint 中可用敏感度标签的属性。

PowerPoint.SensitivityLabelDetailsCollection

表示 PowerPoint.SensitivityLabelDetails 对象的集合。

PowerPoint.SensitivityLabelsCatalog

提供方法来检查 PowerPoint 中敏感度标签目录的状态,并在启用目录的情况下检索所有可用的敏感度标签。

PowerPoint.Shape

表示幻灯片中的单个形状。

PowerPoint.ShapeCollection

表示形状的集合。

PowerPoint.ShapeFill

表示形状对象的填充格式。

PowerPoint.ShapeFont

表示形状的 TextRange 对象的字体属性,如字体名称、字号和颜色。

PowerPoint.ShapeGroup

表示演示文稿中的形状组。 要获取相应的 Shape 对象,请使用 ShapeGroup.shape

PowerPoint.ShapeLineFormat

表示形状对象的线条格式。 对于图像和几何形状,线条格式表示形状的边框。

PowerPoint.ShapeScopedCollection

表示形状的集合。

PowerPoint.Slide

表示演示文稿的单张幻灯片。

PowerPoint.SlideBackground

表示幻灯片的背景。

PowerPoint.SlideBackgroundFill

表示幻灯片背景对象的填充格式。

PowerPoint.SlideBackgroundGradientFill

表示 PowerPoint.SlideBackground 渐变填充属性。

PowerPoint.SlideBackgroundPatternFill

表示 PowerPoint.SlideBackground 图案填充属性。

PowerPoint.SlideBackgroundPictureOrTextureFill

表示 PowerPoint.SlideBackground 图片或纹理填充属性。

PowerPoint.SlideBackgroundSolidFill

表示 PowerPoint.SlideBackground 实体填充属性。

PowerPoint.SlideCollection

表示演示文稿中的幻灯片集合。

PowerPoint.SlideLayout

表示幻灯片的版式。

PowerPoint.SlideLayoutBackground

表示幻灯片版式的背景。

PowerPoint.SlideLayoutCollection

表示幻灯片母版为幻灯片提供的版式集合。

PowerPoint.SlideMaster

表示幻灯片的幻灯片母版。

PowerPoint.SlideMasterBackground

表示幻灯片母版的背景。

PowerPoint.SlideMasterCollection

表示演示文稿中的幻灯片母版集合。

PowerPoint.SlideScopedCollection

表示演示文稿中的幻灯片集合。

PowerPoint.Table

表示一个表。

PowerPoint.TableCell

表示一个表。

PowerPoint.TableCellCollection

表示表单元格的集合。

PowerPoint.TableColumn

代表表格中的一列。

PowerPoint.TableColumnCollection

表示表列的集合。

PowerPoint.TableRow

表示表中的行。

PowerPoint.TableRowCollection

表示表行的集合。

PowerPoint.TableStyleSettings

表示可用的表格样式设置。

PowerPoint.Tag

表示幻灯片中的单个标记。

PowerPoint.TagCollection

表示标记的集合。

PowerPoint.TextFrame

表示形状对象的文本框架。

PowerPoint.TextRange

包含附加到形状上的文本,以及用于操作文本的属性和方法。

PowerPoint.ThemeColorScheme

表示主题配色方案。

接口

PowerPoint.AddSlideOptions

表示添加新幻灯片时的可用选项。

PowerPoint.BorderProperties

表示表格单元格边框的属性。

PowerPoint.FillProperties

表示表格单元格的填充格式。

PowerPoint.FontProperties

表示字体属性,如字体名称、字号和颜色。

PowerPoint.HyperlinkAddOptions

表示添加 PowerPoint.Hyperlink 时的可用选项。

PowerPoint.InsertSlideOptions

表示插入幻灯片时的可用选项。

PowerPoint.Interfaces.AdjustmentsData

一个描述通过调用 adjustments.toJSON()返回的数据的接口。

PowerPoint.Interfaces.AdjustmentsLoadOptions

表示形状的调整值。

PowerPoint.Interfaces.BindingCollectionData

一个描述通过调用 bindingCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.BindingCollectionLoadOptions

表示属于演示文稿的所有绑定对象的集合。

PowerPoint.Interfaces.BindingCollectionUpdateData

用于更新对象上 BindingCollection 的数据的接口,用于 bindingCollection.set({ ... }).

PowerPoint.Interfaces.BindingData

一个描述通过调用 binding.toJSON()返回的数据的接口。

PowerPoint.Interfaces.BindingLoadOptions

表示在演示文稿中定义的 Office.js 绑定。

PowerPoint.Interfaces.BorderData

一个描述通过调用 border.toJSON()返回的数据的接口。

PowerPoint.Interfaces.BorderLoadOptions

表示表格单元格边框的属性。

PowerPoint.Interfaces.BordersData

一个描述通过调用 borders.toJSON()返回的数据的接口。

PowerPoint.Interfaces.BordersLoadOptions

表示表格单元格的边框。

PowerPoint.Interfaces.BorderUpdateData

用于更新对象上 Border 的数据的接口,用于 border.set({ ... }).

PowerPoint.Interfaces.BulletFormatData

一个描述通过调用 bulletFormat.toJSON()返回的数据的接口。

PowerPoint.Interfaces.BulletFormatLoadOptions

表示附加到 PowerPoint.ParagraphFormat 的文本的项目符号格式属性。

PowerPoint.Interfaces.BulletFormatUpdateData

用于更新对象上 BulletFormat 的数据的接口,用于 bulletFormat.set({ ... }).

PowerPoint.Interfaces.CollectionLoadOptions

提供仅加载集合成员子集的属性的方法。

PowerPoint.Interfaces.CustomPropertyCollectionData

一个描述通过调用 customPropertyCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.CustomPropertyCollectionLoadOptions

自定义属性的集合。

PowerPoint.Interfaces.CustomPropertyCollectionUpdateData

用于更新对象上 CustomPropertyCollection 的数据的接口,用于 customPropertyCollection.set({ ... }).

PowerPoint.Interfaces.CustomPropertyData

一个描述通过调用 customProperty.toJSON()返回的数据的接口。

PowerPoint.Interfaces.CustomPropertyLoadOptions

表示自定义属性。

PowerPoint.Interfaces.CustomPropertyUpdateData

用于更新对象上 CustomProperty 的数据的接口,用于 customProperty.set({ ... }).

PowerPoint.Interfaces.CustomXmlPartCollectionData

一个描述通过调用 customXmlPartCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.CustomXmlPartCollectionLoadOptions

自定义 XML 部分的集合。

PowerPoint.Interfaces.CustomXmlPartCollectionUpdateData

用于更新对象上 CustomXmlPartCollection 的数据的接口,用于 customXmlPartCollection.set({ ... }).

PowerPoint.Interfaces.CustomXmlPartData

一个描述通过调用 customXmlPart.toJSON()返回的数据的接口。

PowerPoint.Interfaces.CustomXmlPartLoadOptions

表示自定义 XML 部件对象。

PowerPoint.Interfaces.CustomXmlPartScopedCollectionData

一个描述通过调用 customXmlPartScopedCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.CustomXmlPartScopedCollectionLoadOptions

自定义 XML 部分的作用域集合。 作用域集合是一些操作 (的结果,例如按命名空间筛选) 。 无法进一步限定范围的集合。

PowerPoint.Interfaces.CustomXmlPartScopedCollectionUpdateData

用于更新对象上 CustomXmlPartScopedCollection 的数据的接口,用于 customXmlPartScopedCollection.set({ ... }).

PowerPoint.Interfaces.DocumentPropertiesData

一个描述通过调用 documentProperties.toJSON()返回的数据的接口。

PowerPoint.Interfaces.DocumentPropertiesLoadOptions

表示演示属性。

PowerPoint.Interfaces.DocumentPropertiesUpdateData

用于更新对象上 DocumentProperties 的数据的接口,用于 documentProperties.set({ ... }).

PowerPoint.Interfaces.GraphicData

一个描述通过调用 graphic.toJSON()返回的数据的接口。

PowerPoint.Interfaces.GraphicLoadOptions

表示 PowerPoint 中的图形对象。

PowerPoint.Interfaces.HyperlinkCollectionData

一个描述通过调用 hyperlinkCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.HyperlinkCollectionLoadOptions

表示超链接的集合。

PowerPoint.Interfaces.HyperlinkCollectionUpdateData

用于更新对象上 HyperlinkCollection 的数据的接口,用于 hyperlinkCollection.set({ ... }).

PowerPoint.Interfaces.HyperlinkData

一个描述通过调用 hyperlink.toJSON()返回的数据的接口。

PowerPoint.Interfaces.HyperlinkLoadOptions

表示单个超链接。

PowerPoint.Interfaces.HyperlinkScopedCollectionData

一个描述通过调用 hyperlinkScopedCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.HyperlinkScopedCollectionLoadOptions

表示超链接的范围集合。

PowerPoint.Interfaces.HyperlinkScopedCollectionUpdateData

用于更新对象上 HyperlinkScopedCollection 的数据的接口,用于 hyperlinkScopedCollection.set({ ... }).

PowerPoint.Interfaces.HyperlinkUpdateData

用于更新对象上 Hyperlink 的数据的接口,用于 hyperlink.set({ ... }).

PowerPoint.Interfaces.MarginsData

一个描述通过调用 margins.toJSON()返回的数据的接口。

PowerPoint.Interfaces.MarginsLoadOptions

表示表格单元格的边距。

PowerPoint.Interfaces.MarginsUpdateData

用于更新对象上 Margins 的数据的接口,用于 margins.set({ ... }).

PowerPoint.Interfaces.PageSetupData

一个描述通过调用 pageSetup.toJSON()返回的数据的接口。

PowerPoint.Interfaces.PageSetupLoadOptions

表示演示文稿的页面设置信息。

PowerPoint.Interfaces.PageSetupUpdateData

用于更新对象上 PageSetup 的数据的接口,用于 pageSetup.set({ ... }).

PowerPoint.Interfaces.ParagraphFormatData

一个描述通过调用 paragraphFormat.toJSON()返回的数据的接口。

PowerPoint.Interfaces.ParagraphFormatLoadOptions

表示附加到 PowerPoint.TextRange 的文本的段落格式属性。

PowerPoint.Interfaces.ParagraphFormatUpdateData

用于更新对象上 ParagraphFormat 的数据的接口,用于 paragraphFormat.set({ ... }).

PowerPoint.Interfaces.PlaceholderFormatData

一个描述通过调用 placeholderFormat.toJSON()返回的数据的接口。

PowerPoint.Interfaces.PlaceholderFormatLoadOptions

表示形状的 placeholder 属性。

PowerPoint.Interfaces.PresentationData

一个描述通过调用 presentation.toJSON()返回的数据的接口。

PowerPoint.Interfaces.PresentationLoadOptions

Presentation对象是具有一张或多张载有演示文稿内容的幻灯片的顶层对象。 若要了解有关 PowerPoint 对象模型的详细信息,请参阅 PowerPoint JavaScript 对象模型

PowerPoint.Interfaces.SensitivityLabelAbacAttributeData

一个描述通过调用 sensitivityLabelAbacAttribute.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SensitivityLabelAbacAttributeLoadOptions

表示基于属性的访问控制 (ABAC) 可在启用 ABAC 的敏感度标签上选择的属性。

PowerPoint.Interfaces.SensitivityLabelAbacAttributeValueData

一个描述通过调用 sensitivityLabelAbacAttributeValue.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SensitivityLabelAbacAttributeValueLoadOptions

表示可应用于敏感度标签的基于属性的访问控制 (ABAC) 属性的单个可选值。

PowerPoint.Interfaces.SensitivityLabelDetailsCollectionData

一个描述通过调用 sensitivityLabelDetailsCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SensitivityLabelDetailsCollectionLoadOptions

表示 PowerPoint.SensitivityLabelDetails 对象的集合。

PowerPoint.Interfaces.SensitivityLabelDetailsCollectionUpdateData

用于更新对象上 SensitivityLabelDetailsCollection 的数据的接口,用于 sensitivityLabelDetailsCollection.set({ ... }).

PowerPoint.Interfaces.SensitivityLabelDetailsData

一个描述通过调用 sensitivityLabelDetails.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SensitivityLabelDetailsLoadOptions

表示 PowerPoint 中可用敏感度标签的属性。

PowerPoint.Interfaces.SensitivityLabelsCatalogData

一个描述通过调用 sensitivityLabelsCatalog.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SensitivityLabelsCatalogLoadOptions

提供方法来检查 PowerPoint 中敏感度标签目录的状态,并在启用目录的情况下检索所有可用的敏感度标签。

PowerPoint.Interfaces.ShapeCollectionData

一个描述通过调用 shapeCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.ShapeCollectionLoadOptions

表示形状的集合。

PowerPoint.Interfaces.ShapeCollectionUpdateData

用于更新对象上 ShapeCollection 的数据的接口,用于 shapeCollection.set({ ... }).

PowerPoint.Interfaces.ShapeData

一个描述通过调用 shape.toJSON()返回的数据的接口。

PowerPoint.Interfaces.ShapeFillData

一个描述通过调用 shapeFill.toJSON()返回的数据的接口。

PowerPoint.Interfaces.ShapeFillLoadOptions

表示形状对象的填充格式。

PowerPoint.Interfaces.ShapeFillUpdateData

用于更新对象上 ShapeFill 的数据的接口,用于 shapeFill.set({ ... }).

PowerPoint.Interfaces.ShapeFontData

一个描述通过调用 shapeFont.toJSON()返回的数据的接口。

PowerPoint.Interfaces.ShapeFontLoadOptions

表示形状的 TextRange 对象的字体属性,如字体名称、字号和颜色。

PowerPoint.Interfaces.ShapeFontUpdateData

用于更新对象上 ShapeFont 的数据的接口,用于 shapeFont.set({ ... }).

PowerPoint.Interfaces.ShapeGroupData

一个描述通过调用 shapeGroup.toJSON()返回的数据的接口。

PowerPoint.Interfaces.ShapeGroupLoadOptions

表示演示文稿中的形状组。 要获取相应的 Shape 对象,请使用 ShapeGroup.shape

PowerPoint.Interfaces.ShapeLineFormatData

一个描述通过调用 shapeLineFormat.toJSON()返回的数据的接口。

PowerPoint.Interfaces.ShapeLineFormatLoadOptions

表示形状对象的线条格式。 对于图像和几何形状,线条格式表示形状的边框。

PowerPoint.Interfaces.ShapeLineFormatUpdateData

用于更新对象上 ShapeLineFormat 的数据的接口,用于 shapeLineFormat.set({ ... }).

PowerPoint.Interfaces.ShapeLoadOptions

表示幻灯片中的单个形状。

PowerPoint.Interfaces.ShapeScopedCollectionData

一个描述通过调用 shapeScopedCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.ShapeScopedCollectionLoadOptions

表示形状的集合。

PowerPoint.Interfaces.ShapeScopedCollectionUpdateData

用于更新对象上 ShapeScopedCollection 的数据的接口,用于 shapeScopedCollection.set({ ... }).

PowerPoint.Interfaces.ShapeUpdateData

用于更新对象上 Shape 的数据的接口,用于 shape.set({ ... }).

PowerPoint.Interfaces.SlideBackgroundData

一个描述通过调用 slideBackground.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideBackgroundFillData

一个描述通过调用 slideBackgroundFill.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideBackgroundFillLoadOptions

表示幻灯片背景对象的填充格式。

PowerPoint.Interfaces.SlideBackgroundGradientFillData

一个描述通过调用 slideBackgroundGradientFill.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideBackgroundGradientFillLoadOptions

表示 PowerPoint.SlideBackground 渐变填充属性。

PowerPoint.Interfaces.SlideBackgroundGradientFillUpdateData

用于更新对象上 SlideBackgroundGradientFill 的数据的接口,用于 slideBackgroundGradientFill.set({ ... }).

PowerPoint.Interfaces.SlideBackgroundLoadOptions

表示幻灯片的背景。

PowerPoint.Interfaces.SlideBackgroundPatternFillData

一个描述通过调用 slideBackgroundPatternFill.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideBackgroundPatternFillLoadOptions

表示 PowerPoint.SlideBackground 图案填充属性。

PowerPoint.Interfaces.SlideBackgroundPatternFillUpdateData

用于更新对象上 SlideBackgroundPatternFill 的数据的接口,用于 slideBackgroundPatternFill.set({ ... }).

PowerPoint.Interfaces.SlideBackgroundPictureOrTextureFillData

一个描述通过调用 slideBackgroundPictureOrTextureFill.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideBackgroundPictureOrTextureFillLoadOptions

表示 PowerPoint.SlideBackground 图片或纹理填充属性。

PowerPoint.Interfaces.SlideBackgroundPictureOrTextureFillUpdateData

用于更新对象上 SlideBackgroundPictureOrTextureFill 的数据的接口,用于 slideBackgroundPictureOrTextureFill.set({ ... }).

PowerPoint.Interfaces.SlideBackgroundSolidFillData

一个描述通过调用 slideBackgroundSolidFill.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideBackgroundSolidFillLoadOptions

表示 PowerPoint.SlideBackground 实体填充属性。

PowerPoint.Interfaces.SlideBackgroundSolidFillUpdateData

用于更新对象上 SlideBackgroundSolidFill 的数据的接口,用于 slideBackgroundSolidFill.set({ ... }).

PowerPoint.Interfaces.SlideBackgroundUpdateData

用于更新对象上 SlideBackground 的数据的接口,用于 slideBackground.set({ ... }).

PowerPoint.Interfaces.SlideCollectionData

一个描述通过调用 slideCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideCollectionLoadOptions

表示演示文稿中的幻灯片集合。

PowerPoint.Interfaces.SlideCollectionUpdateData

用于更新对象上 SlideCollection 的数据的接口,用于 slideCollection.set({ ... }).

PowerPoint.Interfaces.SlideData

一个描述通过调用 slide.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideLayoutBackgroundData

一个描述通过调用 slideLayoutBackground.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideLayoutBackgroundLoadOptions

表示幻灯片版式的背景。

PowerPoint.Interfaces.SlideLayoutBackgroundUpdateData

用于更新对象上 SlideLayoutBackground 的数据的接口,用于 slideLayoutBackground.set({ ... }).

PowerPoint.Interfaces.SlideLayoutCollectionData

一个描述通过调用 slideLayoutCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideLayoutCollectionLoadOptions

表示幻灯片母版为幻灯片提供的版式集合。

PowerPoint.Interfaces.SlideLayoutCollectionUpdateData

用于更新对象上 SlideLayoutCollection 的数据的接口,用于 slideLayoutCollection.set({ ... }).

PowerPoint.Interfaces.SlideLayoutData

一个描述通过调用 slideLayout.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideLayoutLoadOptions

表示幻灯片的版式。

PowerPoint.Interfaces.SlideLoadOptions

表示演示文稿的单张幻灯片。

PowerPoint.Interfaces.SlideMasterBackgroundData

一个描述通过调用 slideMasterBackground.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideMasterBackgroundLoadOptions

表示幻灯片母版的背景。

PowerPoint.Interfaces.SlideMasterCollectionData

一个描述通过调用 slideMasterCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideMasterCollectionLoadOptions

表示演示文稿中的幻灯片母版集合。

PowerPoint.Interfaces.SlideMasterCollectionUpdateData

用于更新对象上 SlideMasterCollection 的数据的接口,用于 slideMasterCollection.set({ ... }).

PowerPoint.Interfaces.SlideMasterData

一个描述通过调用 slideMaster.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideMasterLoadOptions

表示幻灯片的幻灯片母版。

PowerPoint.Interfaces.SlideScopedCollectionData

一个描述通过调用 slideScopedCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.SlideScopedCollectionLoadOptions

表示演示文稿中的幻灯片集合。

PowerPoint.Interfaces.SlideScopedCollectionUpdateData

用于更新对象上 SlideScopedCollection 的数据的接口,用于 slideScopedCollection.set({ ... }).

PowerPoint.Interfaces.TableCellCollectionData

一个描述通过调用 tableCellCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TableCellCollectionLoadOptions

表示表单元格的集合。

PowerPoint.Interfaces.TableCellCollectionUpdateData

用于更新对象上 TableCellCollection 的数据的接口,用于 tableCellCollection.set({ ... }).

PowerPoint.Interfaces.TableCellData

一个描述通过调用 tableCell.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TableCellLoadOptions

表示一个表。

PowerPoint.Interfaces.TableCellUpdateData

用于更新对象上 TableCell 的数据的接口,用于 tableCell.set({ ... }).

PowerPoint.Interfaces.TableColumnCollectionData

一个描述通过调用 tableColumnCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TableColumnCollectionLoadOptions

表示表列的集合。

PowerPoint.Interfaces.TableColumnCollectionUpdateData

用于更新对象上 TableColumnCollection 的数据的接口,用于 tableColumnCollection.set({ ... }).

PowerPoint.Interfaces.TableColumnData

一个描述通过调用 tableColumn.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TableColumnLoadOptions

代表表格中的一列。

PowerPoint.Interfaces.TableColumnUpdateData

用于更新对象上 TableColumn 的数据的接口,用于 tableColumn.set({ ... }).

PowerPoint.Interfaces.TableData

一个描述通过调用 table.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TableLoadOptions

表示一个表。

PowerPoint.Interfaces.TableRowCollectionData

一个描述通过调用 tableRowCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TableRowCollectionLoadOptions

表示表行的集合。

PowerPoint.Interfaces.TableRowCollectionUpdateData

用于更新对象上 TableRowCollection 的数据的接口,用于 tableRowCollection.set({ ... }).

PowerPoint.Interfaces.TableRowData

一个描述通过调用 tableRow.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TableRowLoadOptions

表示表中的行。

PowerPoint.Interfaces.TableRowUpdateData

用于更新对象上 TableRow 的数据的接口,用于 tableRow.set({ ... }).

PowerPoint.Interfaces.TableStyleSettingsData

一个描述通过调用 tableStyleSettings.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TableStyleSettingsLoadOptions

表示可用的表格样式设置。

PowerPoint.Interfaces.TableStyleSettingsUpdateData

用于更新对象上 TableStyleSettings 的数据的接口,用于 tableStyleSettings.set({ ... }).

PowerPoint.Interfaces.TagCollectionData

一个描述通过调用 tagCollection.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TagCollectionLoadOptions

表示标记的集合。

PowerPoint.Interfaces.TagCollectionUpdateData

用于更新对象上 TagCollection 的数据的接口,用于 tagCollection.set({ ... }).

PowerPoint.Interfaces.TagData

一个描述通过调用 tag.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TagLoadOptions

表示幻灯片中的单个标记。

PowerPoint.Interfaces.TagUpdateData

用于更新对象上 Tag 的数据的接口,用于 tag.set({ ... }).

PowerPoint.Interfaces.TextFrameData

一个描述通过调用 textFrame.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TextFrameLoadOptions

表示形状对象的文本框架。

PowerPoint.Interfaces.TextFrameUpdateData

用于更新对象上 TextFrame 的数据的接口,用于 textFrame.set({ ... }).

PowerPoint.Interfaces.TextRangeData

一个描述通过调用 textRange.toJSON()返回的数据的接口。

PowerPoint.Interfaces.TextRangeLoadOptions

包含附加到形状上的文本,以及用于操作文本的属性和方法。

PowerPoint.Interfaces.TextRangeUpdateData

用于更新对象上 TextRange 的数据的接口,用于 textRange.set({ ... }).

PowerPoint.PictureAddOptions

表示添加由 PowerPoint.Shape 对象) 表示的图片 (时的可用选项。

PowerPoint.ShapeAddOptions

表示添加形状时的可用选项。

PowerPoint.ShapeGetImageOptions

表示获取形状图像时的可用选项。 图像被缩放以适应所需的尺寸。 如果未指定宽度和高度,则使用形状的实际大小。 如果仅指定了宽度或高度中的一个,则将计算另一个以保持纵横比。 如果生成的尺寸太大,将自动固定为最大支持尺寸。

PowerPoint.SlideBackgroundGradientFillOptions

表示可用于设置 PowerPoint.SlideBackground 渐变填充的选项。

PowerPoint.SlideBackgroundPatternFillOptions

表示可用于设置 PowerPoint.SlideBackground 图案填充的选项。

PowerPoint.SlideBackgroundPictureOrTextureFillOptions

表示 PowerPoint.SlideBackground 图片或纹理填充选项。

PowerPoint.SlideBackgroundSolidFillOptions

表示可用于设置 PowerPoint.SlideBackground 纯色填充的选项。

PowerPoint.SlideGetImageOptions

表示获取幻灯片图像时的可用选项。

PowerPoint.SlideSelectionChangedEventArgs

提供有关幻灯片选择更改事件的信息。

PowerPoint.TableAddOptions

表示添加表时的可用选项。

PowerPoint.TableCellBorders

表示表格单元格的边框。

PowerPoint.TableCellMargins

表示表格单元格的边距。

PowerPoint.TableCellProperties

表示要更新的表单元格属性。

PowerPoint.TableClearOptions

表示清除表时的可用选项。

PowerPoint.TableColumnProperties

提供表列属性。

PowerPoint.TableMergedAreaProperties

表示表中单元格合并区域的属性。

PowerPoint.TableRowProperties

提供表行属性。

PowerPoint.TextRun

表示具有相同字体属性的一个或多个字符的序列。

枚举

PowerPoint.BindingType

表示可能的绑定类型。

PowerPoint.BulletStyle

指定项目符号的样式。

PowerPoint.BulletType

指定项目符号的类型。

PowerPoint.ConnectorType

指定线条形状的连接线类型。

PowerPoint.DocumentPropertyType

指定自定义属性的文档属性类型。

PowerPoint.ErrorCodes
PowerPoint.GeometricShapeType

指定对象的形状类型 GeometricShape

PowerPoint.HyperlinkType

指定应用超链接的对象类型。

PowerPoint.InsertSlideFormatting

指定插入幻灯片时的格式设置选项。

PowerPoint.LabelingCapability

指示标记功能。

PowerPoint.ParagraphHorizontalAlignment

表示 PowerPoint.TextFramePowerPoint.Shape 中的水平对齐方式。

PowerPoint.PlaceholderType

指定占位符的类型。

PowerPoint.SensitivityLabelProtectionType

表示保护类型。

PowerPoint.SensitivityLabelUpdateResult

表示更新演示文稿上敏感度标签的结果。

PowerPoint.ShapeAutoSize

确定允许的自动调整大小的类型。

PowerPoint.ShapeFillType

指定形状的填充类型。

PowerPoint.ShapeFontUnderlineStyle

应用于字体的下划线类型。

PowerPoint.ShapeGetImageFormatType

表示图像的格式。

PowerPoint.ShapeLineDashStyle

指定直线的虚线线型。

PowerPoint.ShapeLineStyle

指定线型。

PowerPoint.ShapeType

指定形状的类型。

PowerPoint.ShapeZOrder

使用 with setZOrder 用于在集合的 z 顺序上向上或向下移动指定形状,这会将其移到其他形状的前面或后面。

PowerPoint.SlideBackgroundFillType

指定 PowerPoint.SlideBackground 的填充类型。

PowerPoint.SlideBackgroundGradientFillType

指定 PowerPoint.SlideBackgroundGradientFill 的渐变填充类型。

PowerPoint.SlideBackgroundPatternFillType

指定 PowerPoint.SlideBackgroundPatternFill 的图案填充类型。

PowerPoint.SlideLayoutType

指定幻灯片版式的类型。

PowerPoint.TableStyle

表示可用的内置表格样式。

PowerPoint.TextVerticalAlignment

表示 PowerPoint.TextFramePowerPoint.Shape 中的垂直对齐方式。 如果选择其中一个居中选项,则 的内容 TextFrame 将在 作为一个组中 Shape 水平居中。 若要更改文本的水平对齐方式,请参阅 PowerPoint.ParagraphFormatPowerPoint.ParagraphHorizontalAlignment

PowerPoint.ThemeColor

指定 PowerPoint 中使用的主题颜色。

函数

PowerPoint.createPresentation(base64File)

创建并打开新演示文稿。 或者,可以使用 Base64 编码的 .pptx 文件预填充演示文稿。

API 集:PowerPointApi 1.1

PowerPoint.run(batch)

执行批处理脚本,该脚本使用新的 RequestContext 对 PowerPoint 对象模型执行操作。 解析承诺后,将释放在执行期间自动分配的任何跟踪对象。

PowerPoint.run(object, batch)

执行批处理脚本,该脚本使用以前创建的 API 对象的 RequestContext 对 PowerPoint 对象模型执行操作。 解析承诺后,将释放在执行期间自动分配的任何跟踪对象。

PowerPoint.run(objects, batch)

执行批处理脚本,使用以前创建的 API 对象的 RequestContext 对 PowerPoint 对象模型执行操作。

函数详细信息

PowerPoint.createPresentation(base64File)

创建并打开新演示文稿。 或者,可以使用 Base64 编码的 .pptx 文件预填充演示文稿。

API 集:PowerPointApi 1.1

export function createPresentation(base64File?: string): Promise<void>;

参数

base64File

string

可选。 Base64 编码的 .pptx 文件。 默认值为 null。 最大字符串长度是 71,680,000 个字符。

返回

Promise<void>

示例

const myFile = <HTMLInputElement>document.getElementById("file");
const reader = new FileReader();

reader.onload = (event) => {
  // Remove the metadata before the Base64-encoded string.
  const startIndex = reader.result.toString().indexOf("base64,");
  const copyBase64 = reader.result.toString().substr(startIndex + 7);

  PowerPoint.createPresentation(copyBase64);
};

// Read in the file as a data URL so we can parse the Base64-encoded string.
reader.readAsDataURL(myFile.files[0]);

PowerPoint.run(batch)

执行批处理脚本,该脚本使用新的 RequestContext 对 PowerPoint 对象模型执行操作。 解析承诺后,将释放在执行期间自动分配的任何跟踪对象。

export function run<T>(batch: (context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>): OfficeExtension.IPromise<T>;

参数

batch

(context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>

一个接受 RequestContext 并返回承诺 (函数,通常只是“context.sync () ”的结果 ) 。 context 参数有助于请求 PowerPoint 应用程序。 由于 Office 加载项和 PowerPoint 应用程序在两个不同的进程中运行,因此需要 RequestContext 才能从加载项获取对 PowerPoint 对象模型的访问权限。

返回

示例

// *.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...
});

PowerPoint.run(object, batch)

执行批处理脚本,该脚本使用以前创建的 API 对象的 RequestContext 对 PowerPoint 对象模型执行操作。 解析承诺后,将释放在执行期间自动分配的任何跟踪对象。

export function run<T>(object: OfficeExtension.ClientObject, batch: (context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>): OfficeExtension.IPromise<T>;

参数

object
OfficeExtension.ClientObject

以前创建的 API 对象。 批处理将使用与传入对象相同的 RequestContext,这意味着“context.sync () ”将选取应用于对象的任何更改。

batch

(context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>

一个接受 RequestContext 并返回承诺 (函数,通常只是“context.sync () ”的结果 ) 。 context 参数有助于请求 PowerPoint 应用程序。 由于 Office 加载项和 PowerPoint 应用程序在两个不同的进程中运行,因此需要 RequestContext 才能从加载项获取对 PowerPoint 对象模型的访问权限。

返回

PowerPoint.run(objects, batch)

执行批处理脚本,使用以前创建的 API 对象的 RequestContext 对 PowerPoint 对象模型执行操作。

export function run<T>(objects: OfficeExtension.ClientObject[], batch: (context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>): OfficeExtension.IPromise<T>;

参数

objects

OfficeExtension.ClientObject[]

之前创建的 API 对象数组。 将验证数组以确保所有对象共享相同的上下文。 批处理将使用此共享 RequestContext,这意味着“context.sync () ”将选取应用于这些对象的任何更改。

batch

(context: PowerPoint.RequestContext) => OfficeExtension.IPromise<T>

一个接受 RequestContext 并返回承诺 (函数,通常只是“context.sync () ”的结果 ) 。 context 参数有助于请求 PowerPoint 应用程序。 由于 Office 加载项和 PowerPoint 应用程序在两个不同的进程中运行,因此需要 RequestContext 才能从加载项获取对 PowerPoint 对象模型的访问权限。

返回