IShapeCollection

IShapeCollection 接口

表示形状的集合。

public interface IShapeCollection : IGenericCollection<IShape>

属性

名称描述
Item { get; }获取指定索引处的元素。为只读 IShape
ParentGroup { get; }返回形状集合的父 GroupShape 对象。为只读 IGroupShape

方法

名称描述
AddAudioFrameCD(float, float, float, float)将带 CD 的 AudioFrame 添加到集合的末尾。
AddAudioFrameEmbedded(float, float, float, float, IAudio)将嵌入式音频文件的新音频帧添加到集合末尾。它使用 Presentation.Audios 列表中的音频文件。
AddAudioFrameEmbedded(float, float, float, float, Stream)将嵌入式音频文件的新音频帧添加到集合的末尾。嵌入的音频文件只能是 WAV 格式。它将新音频添加到 Presentation.Audios 列表中。
AddAudioFrameLinked(float, float, float, float, string)将带有链接音频文件的新音频帧添加到集合的末尾。
AddAutoShape(ShapeType, float, float, float, float)创建一个新的 AutoShape,从默认模板进行调整并将其添加到集合末尾。
AddAutoShape(ShapeType, float, float, float, float, bool)创建一个新的 AutoShape,并将其添加到集合末尾。
AddChart(ChartType, float, float, float, float)创建一个新的图表,用示例系列数据和设置初始化它,并将其添加到集合末尾。
AddChart(ChartType, float, float, float, float, bool)创建一个新的图表,并将其添加到集合末尾。
AddClone(IShape)将指定形状的副本添加到集合的末尾。新形状的 X、Y、宽度和高度与 sourceShape 的 X、Y、宽度和高度相等。
AddClone(IShape, float, float)将指定形状的副本添加到集合的末尾。新形状的宽度和高度与 sourceShape 的宽度和高度相等。
AddClone(IShape, float, float, float, float)将指定形状的副本添加到集合的末尾。
AddConnector(ShapeType, float, float, float, float)创建一个新的连接器,从默认模板进行调整并将其添加到集合的末尾。
AddConnector(ShapeType, float, float, float, float, bool)创建一个新的连接器并将其添加到集合的末尾。
AddGroupShape()创建一个新的 GroupShape,并将其添加到集合的末尾。当新形状添加到 GroupShape 时,GroupShape 的框架大小和位置将适合内容。
AddGroupShape(ISvgImage, float, float, float, float)创建一个新的 GroupShape,用转换后的 SVG 形状进行填充,并将其添加到集合的末尾。
AddMathShape(float, float, float, float)创建一个新的矩形类型的 AutoShape,以容纳数学内容并将其添加到集合的末尾。
AddOleObjectFrame(float, float, float, float, IOleEmbeddedDataInfo)将新的 OLE 对象添加到集合的末尾。
AddOleObjectFrame(float, float, float, float, string, string)将新的 OLE 对象添加到集合的末尾。
AddPictureFrame(ShapeType, float, float, float, float, IPPImage)创建一个新的 PictureFrame 并将其添加到集合的末尾。
AddSectionZoomFrame(float, float, float, float, ISection)将新的节缩放对象添加到集合的末尾。
AddSectionZoomFrame(float, float, float, float, ISection, IPPImage)将新的节缩放对象添加到集合的末尾,并带有预定义图像。
AddSmartArt(float, float, float, float, SmartArtLayoutType)添加 SmartArt 图表。
AddSummaryZoomFrame(float, float, float, float)将新的摘要缩放对象添加到集合的末尾。
AddTable(float, float, double[], double[])创建一个新的表并将其添加到集合的末尾。
AddVideoFrame(float, float, float, float, IVideo)将新的视频帧添加到集合的末尾。
AddVideoFrame(float, float, float, float, string)将新的视频帧添加到集合的末尾。
AddZoomFrame(float, float, float, float, ISlide)将新的缩放对象添加到集合的末尾。
AddZoomFrame(float, float, float, float, ISlide, IPPImage)将新的缩放对象添加到集合的末尾。
Clear()从集合中移除所有形状。
IndexOf(IShape)返回集合中形状的第一次出现的零基索引。
InsertAudioFrameCD(int, float, float, float, float)插入带 CD 的 AudioFrame。
InsertAudioFrameEmbedded(int, float, float, float, float, IAudio)插入带嵌入音频文件的 AudioFrame。它使用 Presentation.Audios 列表中的音频文件。
InsertAudioFrameEmbedded(int, float, float, float, float, Stream)插入带嵌入音频文件的 AudioFrame。嵌入的音频文件声音只能是 WAV 格式。它将新音频添加到 Presentation.Audios 列表中。
InsertAudioFrameLinked(int, float, float, float, float, string)创建一个带链接音频文件的新音频帧,并在指定索引处插入到集合中。
InsertAutoShape(int, ShapeType, float, float, float, float)创建一个新的 AutoShape,从默认模板进行调整并在指定索引处插入到集合中。注意:形状的类型将由 shapeType 参数确定。
InsertAutoShape(int, ShapeType, float, float, float, float, bool)创建一个新的 AutoShape,并在指定索引处插入到集合中。注意:形状的类型将由 shapeType 参数确定。
InsertChart(ChartType, float, float, float, float, int)创建一个新的图表,用示例系列数据和设置初始化它,并在集合的指定位置插入。
InsertChart(ChartType, float, float, float, float, int, bool)创建一个新的图表,并在集合的指定位置插入。
InsertClone(int, IShape)在集合的指定位置插入指定形状的副本。新形状的 X、Y、宽度和高度与 sourceShape 的 X、Y、宽度和高度相等。
InsertClone(int, IShape, float, float)在集合的指定位置插入指定形状的副本。新形状的宽度和高度与 sourceShape 的宽度和高度相等。
InsertClone(int, IShape, float, float, float, float)在集合的指定位置插入指定形状的副本。
InsertConnector(int, ShapeType, float, float, float, float)创建一个新的连接器,从默认模板进行调整并在指定索引处插入到集合中。
InsertConnector(int, ShapeType, float, float, float, float, bool)创建一个新的连接器,并在指定索引处插入到集合中。
InsertGroupShape(int)创建一个新的 GroupShape,并在指定索引处插入到集合中。当新形状添加到 GroupShape 中时,GroupShape 的框架大小和位置将适合内容。
InsertOleObjectFrame(int, float, float, float, float, IOleEmbeddedDataInfo)创建一个新的 OLE 对象,并在指定索引处插入到集合中。
InsertOleObjectFrame(int, float, float, float, float, string, string)创建一个新的 OLE 对象,并在指定索引处插入到集合中。
InsertPictureFrame(int, ShapeType, float, float, float, float, IPPImage)创建一个新的 PictureFrame,并在指定索引处插入到集合中。
InsertSectionZoomFrame(int, float, float, float, float, ISection)创建一个新的节缩放对象,并在指定索引处插入到集合中。
InsertSectionZoomFrame(int, float, float, float, float, ISection, IPPImage)创建一个新的节缩放对象,并在指定索引处插入到集合中。
InsertSummaryZoomFrame(int, float, float, float, float)创建一个新的摘要缩放对象,并在指定索引处插入到集合中。
InsertTable(int, float, float, double[], double[])创建一个新的表,并在指定索引处插入到集合中。
InsertVideoFrame(int, float, float, float, float, string)创建一个新的视频帧,并在指定索引处插入到集合中。
InsertZoomFrame(int, float, float, float, float, ISlide)创建一个新的缩放对象,并在指定索引处插入到集合中。
InsertZoomFrame(int, float, float, float, float, ISlide, IPPImage)创建一个新的缩放对象,并在指定索引处插入到集合中。
Remove(IShape)从集合中移除特定形状的第一次出现。
RemoveAt(int)移除集合中指定索引处的元素。
Reorder(int, IShape)将形状从集合移动到指定位置。
Reorder(int, params IShape[])将形状从集合移动到指定位置。形状将根据它们在列表中的出现顺序从索引开始放置。
ToArray()创建并返回一个包含所有形状的数组。
ToArray(int, int)创建并返回一个包含从指定范围内所有形状的数组。

另请参见