SlideUtil

SlideUtil 类

提供帮助在演示文稿中搜索形状和文本的方法。

public static class SlideUtil

方法

名称描述
static AlignShapes(ShapesAlignmentType, bool, IBaseSlide)更改幻灯片上所有形状的位置。将形状对齐到边距或幻灯片边缘,或相互对齐。
static AlignShapes(ShapesAlignmentType, bool, IGroupShape)更改组形状内所有形状的位置。将形状对齐到边距或幻灯片边缘,或相互对齐。
static AlignShapes(ShapesAlignmentType, bool, IBaseSlide, int[])更改幻灯片上选定形状的位置。将形状对齐到边距或幻灯片边缘,或相互对齐。
static AlignShapes(ShapesAlignmentType, bool, IGroupShape, int[])更改组形状内选定形状的位置。将形状对齐到边距或幻灯片边缘,或相互对齐。
static FindAndReplaceText(IPresentation, bool, string, string, PortionFormat)找到并替换具有给定格式的演示文稿中的文本
static FindShape(IBaseSlide, string)通过替代文本在 PPTX 演示文稿中的幻灯片上查找形状。
static FindShape(IPresentation, string)通过替代文本在 PPTX 演示文稿中查找形状。
static GetAllTextBoxes(IBaseSlide)返回 PPTX 演示文稿中幻灯片上的所有文本框。
static GetAllTextFrames(IPresentation, bool)返回 PPTX 演示文稿中的所有文本框。

另见