DestinationCollection

DestinationCollection

概述

DestinationCollection 是 Aspose.PDF FOSS 中用于 .NET 的类。继承自:System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,object>>。

已将命名目标集合公开为 IEnumerable<KeyValuePair<string, object»,以实现公共-API 等价性。

此类提供 10 个方法,用于在 .NET 程序中处理 DestinationCollection 对象。可用的方法包括:Add、Clear、Contains、CopyTo、GetEnumerator、GetExplicitDestination、GetPageNumber、IndexOf、Remove。安装 Aspose.PDF FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:Count、IsReadOnly。

属性

名称类型访问描述
Countint读取目标数量(命名目标树条目加上本地添加的覆盖条目)。
IsReadOnlybool读取始终为 false:调用者可以通过本地覆盖进行扩展。

方法

签名描述
GetPageNumber(destinameName: string, useCache: bool)获取已命名目标的从 1 开始计数的页码。
GetPageNumber(destinameName: string)始终进行缓存的便利重载。
GetExplicitDestination(destinameName: string, useCache: bool)将命名的目标解析为一个 ExplicitDestination;如果未找到则返回 null。
Add(item: System.Collections.Generic.KeyValuePair<string, object>)向本地覆盖层追加一个 (名称 → 目标) 对。
Clear()移除所有覆盖层条目。
Contains(value: System.Collections.Generic.KeyValuePair<string, object>)是否在快照中存在该值(已命名的目标或覆盖层)。
CopyTo(array: System.Collections.Generic.KeyValuePair<string, object>[], arrayIndex: int)将快照复制到数组中,从 arrayIndex 开始。
IndexOf(value: System.Collections.Generic.KeyValuePair<string, object>)在快照中值的索引,若不存在则为 -1。
Remove(item: System.Collections.Generic.KeyValuePair<string, object>)移除与 item 匹配的覆盖层条目。
GetEnumerator()在此 DestinationCollection 实例上调用 GetEnumerator。

另请参阅

 中文