Aspose::Pdf::Utils::DictionaryEditor class

DictionaryEditor class

A class for accessing an object’s dictionary.

class DictionaryEditor : public System::Collections::Generic::IDictionary<System::String, System::SharedPtr<Aspose::Pdf::Utils::PublicData::ICosPdfPrimitive>>

Methods

MethodDescription
Add(const System::String&, const System::SharedPtr<PublicData::ICosPdfPrimitive>&) overrideSet ICosPdfPrimitive to dictionary.
Add(const System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<PublicData::ICosPdfPrimitive>>&) overrideSet ICosPdfPrimitive to dictionary.
Clear() overrideRemoves all items from the DictionaryEditor.
Contains(const System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<PublicData::ICosPdfPrimitive>>&) const overrideDetermines whether the DictionaryEditor contains a specific value.
ContainsKey(const System::String&) const overrideDetermines whether the DictionaryEditor contains an element with the specified key.
CopyTo(System::ArrayPtr<System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<PublicData::ICosPdfPrimitive>>>, int32_t) overrideCopies the elements of the DictionaryEditor to an Array, starting at a particular Array index.
DictionaryEditor(System::SharedPtr<Page>)ArgumentNullException
DictionaryEditor(System::SharedPtr<Document>)ArgumentNullException
get_AllKeys() constFull collection of keys. Contains editable and not editable keys.
get_Count() const overrideGets the number of elements contained in the DictionaryEditor.
get_IsReadOnly() const overrideGets a value indicating whether the DictionaryEditor is read-only.
get_Keys() const overrideCollection of editable keys.
get_Values() const overrideGets an ICollection containing the values in the DictionaryEditor.
GetEnumerator() overrideReturns an enumerator that iterates through the collection.
idx_get(const System::String&) const overrideGets the element with the specified key.
idx_set(const System::String&, System::SharedPtr<PublicData::ICosPdfPrimitive>) overrideSets the element with the specified key.
Remove(const System::String&) overrideRemoves the element with the specified key from the DictionaryEditor.
Remove(const System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<PublicData::ICosPdfPrimitive>>&) overrideRemoves the first occurrence of a specific object from the DictionaryEditor.
TryGetValue(const System::String&, System::SharedPtr<PublicData::ICosPdfPrimitive>&) const overrideFor access to simple data type like string, name, bool, number. Returns null for other types.

See Also