BookmarksOutlineLevelCollection

BookmarksOutlineLevelCollection

概述

BookmarksOutlineLevelCollection 是 Aspose.Words FOSS 中用于 .NET 的类。继承自:IEnumerable<KeyValuePair<string、int>>。

一组单独的书签大纲层级。

此类提供 7 个方法,用于在 .NET 程序中处理 BookmarksOutlineLevelCollection 对象。可用的方法包括:Add、Clear、Contains、GetEnumerator、IndexOfKey、Remove、RemoveAt。在安装 Aspose.Words FOSS for .NET 包后,所有公共成员均可被任何 .NET 应用程序访问。属性:Count。

属性

名称类型访问描述
Countint读取获取集合中包含的元素数量。

方法

签名描述
Add(name: string, outlineLevel: int)将书签添加到集合中。
Contains(name: string)确定集合中是否包含具有给定名称的书签。
IndexOfKey(name: string)返回集合中指定书签的零基索引。
Remove(name: string)从集合中移除具有指定名称的书签。
RemoveAt(index: int)移除位于指定索引的书签。
Clear()从集合中移除所有元素。
GetEnumerator()返回一个 enumeratoriteratorenumerator 对象,可用于遍历集合中的所有项目。

另请参阅

 中文