Class DictionaryEditor
DictionaryEditor class
一个用于访问文档的树字典(文档字典、页面字典、资源字典)的类。
public class DictionaryEditor : IDictionary<string, ICosPdfPrimitive>
Constructors
Properties
| Name | Description |
|---|
| AllKeys { get; } | 完整的键集合。包含可编辑和不可编辑的键。 |
| Count { get; } | 获取DictionaryEditor中包含的元素数量。 |
| IsReadOnly { get; } | 获取一个值,指示DictionaryEditor是否为只读。 |
| Item { get; set; } | 获取或设置具有指定键的元素。 |
| Keys { get; } | 可编辑键的集合。 |
| Values { get; } | 获取一个包含DictionaryEditor中值的ICollection。 |
Methods
| Name | Description |
|---|
| Add(KeyValuePair<string, ICosPdfPrimitive>) | 将ICosPdfPrimitive设置到字典中。 |
| Add(string, ICosPdfPrimitive) | 将ICosPdfPrimitive设置到字典中。 |
| Clear() | 从DictionaryEditor中删除所有项。 |
| Contains(KeyValuePair<string, ICosPdfPrimitive>) | 确定DictionaryEditor是否包含特定值。 |
| ContainsKey(string) | 确定DictionaryEditor是否包含具有指定键的元素。 |
| CopyTo(KeyValuePair<string, ICosPdfPrimitive>[], int) | |
| GetEnumerator() | 返回一个枚举数,用于迭代集合。 |
| Remove(KeyValuePair<string, ICosPdfPrimitive>) | 从DictionaryEditor中删除特定对象的第一次出现。 |
| Remove(string) | 从DictionaryEditor中删除具有指定键的元素。 |
| TryGetValue(string, out ICosPdfPrimitive) | 用于访问简单数据类型,如字符串、名称、布尔值、数字。对于其他类型返回null。 |
See Also