Class DictionaryEditor

DictionaryEditor class

A class for accessing an object’s dictionary.

public class DictionaryEditor : IDictionary<string, ICosPdfPrimitive>

Constructors

NameDescription
DictionaryEditor(Document)
DictionaryEditor(Page)

Properties

NameDescription
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

NameDescription
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