SectionCollection

SectionCollection 类

表示一个节的集合。

public sealed class SectionCollection : DomObject<Presentation>, ISectionCollection

属性

名称描述
Count { get; }获取集合中实际包含的元素数量。只读 Int32。
IsSynchronized { get; }返回一个值,指示对集合的访问是否已同步(线程安全)。只读 Boolean。
Item { get; }获取指定索引处的元素。只读 ISection
SyncRoot { get; }返回同步根。只读 Object。

方法

名称描述
AddEmptySection(string, int)在集合的指定位置添加空节。
AddSection(string, ISlide)添加从特定幻灯片开始的幻灯片节。
AppendEmptySection(string)在集合的末尾添加空节。
Clear()从集合中删除所有节。
CopyTo(Array, int)将整个集合复制到指定的数组中。
GetEnumerator()返回遍历集合的枚举器。
IndexOf(ISection)返回集合中指定节的索引。
RemoveSection(ISection)删除节。节中包含的幻灯片将合并到前一个节。
RemoveSectionWithSlides(ISection)删除节及其包含的幻灯片。
ReorderSectionWithSlides(ISection, int)将节及其幻灯片从集合移动到指定位置。

另见