Class CosPdfDictionary
内容
[
隐藏
]CosPdfDictionary class
一个用于访问对象字典的类。
public class CosPdfDictionary : CosPdfPrimitive, IDictionary<string, ICosPdfPrimitive>
Constructors
| Name | Description |
|---|---|
| CosPdfDictionary(Resources) | 从资源创建字典。 |
Properties
| Name | Description |
|---|---|
| AllKeys { get; } | 键的完整集合。包含可编辑和不可编辑的键。 |
| Count { get; } | 获取CosPdfDictionary中包含的元素数量。 |
| IsReadOnly { get; } | 获取一个值,指示CosPdfDictionary是否为只读。 |
| Item { get; set; } | 获取或设置具有指定键的元素。 |
| Keys { get; } | 可编辑键的集合。 |
| Values { get; } | 获取包含CosPdfDictionary中值的ICollection。 |
Methods
| Name | Description |
|---|---|
| static CreateEmptyDictionary(Document) | 创建一个将附加到文档的空字典。 |
| static CreateEmptyDictionary(Page) | 创建一个将附加到页面的空字典。 |
| Add(KeyValuePair<string, ICosPdfPrimitive>) | 将ICosPdfPrimitive设置到字典。 |
| Add(string, ICosPdfPrimitive) | 将ICosPdfPrimitive设置到字典。 |
| Clear() | 从CosPdfDictionary中移除所有项。 |
| Contains(KeyValuePair<string, ICosPdfPrimitive>) | 确定CosPdfDictionary是否包含特定值。 |
| ContainsKey(string) | 确定CosPdfDictionary是否包含具有指定键的元素。 |
| CopyTo(KeyValuePair<string, ICosPdfPrimitive>[], int) | |
| GetEnumerator() | 返回一个枚举器,用于迭代集合。 |
| Remove(KeyValuePair<string, ICosPdfPrimitive>) | 从CosPdfDictionary中移除特定对象的第一次出现。 |
| Remove(string) | 从CosPdfDictionary中移除具有指定键的元素。 |
| virtual ToCosPdfBoolean() | 尝试将此实例转换为CosPdfBoolean。 |
| override ToCosPdfDictionary() | 尝试将此实例转换为CosPdfDictionary。 |
| virtual ToCosPdfName() | 尝试将此实例转换为CosPdfName。 |
| virtual ToCosPdfNumber() | 尝试将此实例转换为CosPdfNumber。 |
| virtual ToCosPdfString() | 尝试将此实例转换为CosPdfString。 |
| TryGetValue(string, out ICosPdfPrimitive) | 用于访问简单数据类型,如字符串、名称、布尔值、数字。对于其他类型返回null。 |
See Also
- class CosPdfPrimitive
- interface ICosPdfPrimitive
- namespace Aspose.Pdf.DataEditor
- assembly Aspose.PDF