Class DictionaryEditor
Contents
[
Hide
]DictionaryEditor class
A class for accessing an document’s tree dictionary (document dictionary, page dictionary, resources dictionary).
public class DictionaryEditor : IDictionary<string, ICosPdfPrimitive>
Constructors
| Name | Description |
|---|---|
| DictionaryEditor(Document) | |
| DictionaryEditor(Page) | |
| DictionaryEditor(Resources) |
Properties
| Name | Description |
|---|---|
| AllKeys { get; } | Full collection of keys. Contains editable and not editable keys. |
| Count { get; } | Gets the number of elements contained in the DictionaryEditor. |
| IsReadOnly { get; } | Gets a value indicating whether the DictionaryEditor is read-only. |
| Item { get; set; } | Gets or sets the element with the specified key. |
| Keys { get; } | Collection of editable keys. |
| Values { get; } | Gets an ICollection containing the values in the DictionaryEditor. |
Methods
| Name | Description |
|---|---|
| Add(KeyValuePair<string, ICosPdfPrimitive>) | Set ICosPdfPrimitive to dictionary. |
| Add(string, ICosPdfPrimitive) | Set ICosPdfPrimitive to dictionary. |
| Clear() | Removes all items from the DictionaryEditor. |
| Contains(KeyValuePair<string, ICosPdfPrimitive>) | Determines whether the DictionaryEditor contains a specific value. |
| ContainsKey(string) | Determines whether the DictionaryEditor contains an element with the specified key. |
| CopyTo(KeyValuePair<string, ICosPdfPrimitive>[], int) | |
| GetEnumerator() | Returns an enumerator that iterates through the collection. |
| Remove(KeyValuePair<string, ICosPdfPrimitive>) | Removes the first occurrence of a specific object from the DictionaryEditor. |
| Remove(string) | Removes the element with the specified key from the DictionaryEditor. |
| TryGetValue(string, out ICosPdfPrimitive) | For access to simple data type like string, name, bool, number. Returns null for other types. |
See Also
- interface ICosPdfPrimitive
- namespace Aspose.Pdf.DataEditor
- assembly Aspose.PDF