DictionaryEditor

DictionaryEditor

Overview

DictionaryEditor is a class in Aspose.PDF FOSS for .NET. Inherits from: IDictionary<string, ICosPdfPrimitive>.

Edits the dictionary behind a page, a document’s catalog or a resources dictionary as a map of names to ICosPdfPrimitive values.

This class declares 13 methods for DictionaryEditor objects in .NET programs. Available methods include: Add, Clear, Contains, ContainsKey, CopyTo, DictionaryEditor, GetEnumerator, Remove, TryGetValue. Public members are accessible to any .NET application after installing the Aspose.PDF FOSS for .NET package. Properties: AllKeys, Count, IsReadOnly, Keys, Values.

Properties

NameTypeAccessDescription
AllKeysICollection<string>ReadEvery key, including those whose value the editor cannot show.
KeysICollection<string>ReadThe keys whose value the editor shows.
ValuesICollection<ICosPdfPrimitive>ReadThe values the editor shows, with references resolved; entries it cannot show are left out.
CountintReadThe number of entries the editor shows (the size of Keys).
IsReadOnlyboolReadGets the is read only.

Methods

SignatureDescription
DictionaryEditor(page: Page)Edit the page’s dictionary.
DictionaryEditor(document: Document)Edit the document’s catalog.
DictionaryEditor(resources: Resources)Edit a resources dictionary.
ContainsKey(key: string)Returns true when the key holds a value the editor can show.
Remove(key: string)Removes the entry with the given key; returns true when it was present.
TryGetValue(key: string, value: ICosPdfPrimitive)Calls TryGetValue(key, value) on this DictionaryEditor instance.
Add(key: string, value: ICosPdfPrimitive)Writes a value under a key, replacing any existing entry.
Add(item: KeyValuePair<string, ICosPdfPrimitive>)Calls Add(item) on this DictionaryEditor instance.
Clear()Removes every entry, including those the editor cannot show.
Contains(item: KeyValuePair<string, ICosPdfPrimitive>)Calls Contains(item) on this DictionaryEditor instance.
CopyTo(array: KeyValuePair<string, ICosPdfPrimitive>[], arrayIndex: int)Calls CopyTo(array, arrayIndex) on this DictionaryEditor instance.
Remove(item: KeyValuePair<string, ICosPdfPrimitive>)Calls Remove(item) on this DictionaryEditor instance.
GetEnumerator()Calls GetEnumerator on this DictionaryEditor instance.

See Also