ShapeCollection

ShapeCollection class

表示一个形状的集合。

public sealed class ShapeCollection : DomObject<GroupShape>, IShapeCollection

Properties

NameDescription
Count { get; }获取集合中实际包含的元素数量。只读 Int32。
IsSynchronized { get; }返回一个值,指示对集合的访问是否已同步(线程安全)。只读 Boolean。
Item { get; }获取指定索引处的元素。只读 IShape
ParentGroup { get; }返回形状集合的父 GroupShape 对象。只读 IGroupShape
SyncRoot { get; }返回同步根。只读 Object。

Methods

NameDescription
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)将新的 Section Zoom 对象添加到集合末尾。
AddSectionZoomFrame(float, float, float, float, ISection, IPPImage)将带有预定义图像的新 Section Zoom 对象添加到集合末尾。
AddSmartArt(float, float, float, float, SmartArtLayoutType)添加 SmartArt 图表。
AddSummaryZoomFrame(float, float, float, float)将新的 Summary Zoom 对象添加到集合末尾。
AddTable(float, float, double[], double[])创建一个新的表并将其添加到集合末尾。
AddVideoFrame(float, float, float, float, IVideo)将新的视频框添加到集合末尾。
AddVideoFrame(float, float, float, float, string)将新的视频框添加到集合末尾。
AddZoomFrame(float, float, float, float, ISlide)将新的 Zoom 对象添加到集合末尾。
AddZoomFrame(float, float, float, float, ISlide, IPPImage)将新的 Zoom 对象添加到集合末尾。
Clear()从集合中移除所有形状。
CopyTo(Array, int)将集合中的所有元素复制到指定数组中。
GetEnumerator()返回一个枚举器,用于迭代集合。
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。
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)创建一个新的 Section Zoom 对象并在指定索引处插入到集合中。
InsertSectionZoomFrame(int, float, float, float, float, ISection, IPPImage)创建一个新的 Section Zoom 对象并在指定索引处插入到集合中。
InsertSummaryZoomFrame(int, float, float, float, float)创建一个新的 Summary Zoom 对象并在指定索引处插入到集合中。
InsertTable(int, float, float, double[], double[])创建一个新的表并在指定索引插入到集合中。
InsertVideoFrame(int, float, float, float, float, string)创建一个新的视频框并在指定索引处插入到集合中。
InsertZoomFrame(int, float, float, float, float, ISlide)创建一个新的 Zoom 对象并在指定索引处插入到集合中。
InsertZoomFrame(int, float, float, float, float, ISlide, IPPImage)创建一个新的 Zoom 对象并在指定索引处插入到集合中。
Remove(IShape)从集合中移除指定形状的第一次出现。
RemoveAt(int)移除集合中指定索引处的元素。
Reorder(int, IShape)将形状从集合移动到指定位置。
Reorder(int, params IShape[])将形状从集合移动到指定位置。形状将按列表中的顺序从索引开始放置。
ToArray()创建并返回一个包含所有形状的数组。
ToArray(int, int)创建并返回一个包含指定范围内所有形状的数组。返回的第一个形状的索引。返回的形状数量。

See Also