AppearanceDictionary
概述
AppearanceDictionary 是 Aspose.PDF FOSS 中用于 .NET 的一个类。继承自:IDictionary<string、XForm>。
注释上的外观流字典(/AP 条目):将 appearance-state 名称映射到 XForm。
此类提供 12 个方法,用于在 .NET 程序中处理 AppearanceDictionary 对象。可用的方法包括:Add、Clear、Contains、ContainsKey、CopyTo、GetEnumerator、Remove、TryGetValue。安装 Aspose.PDF FOSS for .NET 包后,所有公共成员对任何 .NET 应用程序均可访问。属性:Count、IsFixedSize、IsReadOnly、IsSynchronized、Keys、SyncRoot,以及其他 1 项。
属性
| 名称 | 类型 | 访问 | 描述 |
|---|---|---|---|
Count | int | 读取 | 出现状态的数量。 |
IsReadOnly | bool | 读取 | 获取是否为只读。 |
IsFixedSize | bool | 读取 | 始终为 false(FOSS dict 是可变的)。 |
IsSynchronized | bool | 读取 | 始终为 false:调用者自行序列化其访问。 |
SyncRoot | object | 读取 | 用于 ICollection.SyncRoot-style 锁定的哨兵对象。 |
Keys | ICollection<string> | 读取 | 获取键。 |
Values | ICollection<XForm> | 读取 | 获取值。 |
方法
| 签名 | 描述 |
|---|---|
Add(key: string, value: XForm) | 在此 AppearanceDictionary 实例上调用 Add(key, value)。 |
Add(item: KeyValuePair<string, XForm>) | 通过键/值对添加(IDictionary 合约)。 |
Add(key: object, value: object) | 通过对象/对象添加(松散类型)。 |
Clear() | 对这个 AppearanceDictionary 实例调用 Clear。 |
Contains(item: KeyValuePair<string, XForm>) | 对这个 AppearanceDictionary 实例调用 Contains(item)。 |
ContainsKey(key: string) | 在此 AppearanceDictionary 实例上调用 ContainsKey(key)。 |
CopyTo(array: KeyValuePair<string, XForm>[], arrayIndex: int) | 在此 AppearanceDictionary 实例上调用 CopyTo(array, arrayIndex)。 |
CopyTo(array: XForm[], index: int) | 仅将外观 XForms 复制到数组中(仅值的 CopyTo 重载)。 |
GetEnumerator() | 在此 AppearanceDictionary 实例上调用 GetEnumerator。 |
Remove(key: string) | 在此 AppearanceDictionary 实例上调用 Remove(key)。 |
Remove(item: KeyValuePair<string, XForm>) | 在此 AppearanceDictionary 实例上调用 Remove(item)。 |
TryGetValue(key: string, value: XForm) | 在此 AppearanceDictionary 实例上调用 TryGetValue(key, value)。 |