StructuredDocumentTagCollection

StructuredDocumentTagCollection

概述

StructuredDocumentTagCollection 是 Aspose.Words FOSS 中用于 .NET 的一个类。继承自:IEnumerable<IStructuredDocumentTag>。

一组 IStructuredDocumentTag 实例,用于表示指定范围内的结构化文档标签。

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

属性

名称类型访问描述
Countint读取返回集合中结构化文档标签的数量。

方法

签名描述
GetById(id: int)通过标识符返回结构化文档标签。
GetByTitle(title: string)返回集合中具有指定标题的第一个结构化文档标签。
GetByTag(tag: string)返回集合中遇到的第一个具有指定标签的结构化文档标签。
Remove(id: int)移除具有指定标识符的结构化文档标签。
RemoveAt(index: int)移除指定索引处的结构化文档标签。
GetEnumerator()返回一个枚举器对象。

另请参阅

 中文