Aspose::Pdf::DataEditor::CosPdfDictionary class

CosPdfDictionary class

A class for accessing an object’s dictionary.

class CosPdfDictionary : public Aspose::Pdf::DataEditor::CosPdfPrimitive,
                         public System::Collections::Generic::IDictionary<System::String, System::SharedPtr<ICosPdfPrimitive>>

Methods

MethodDescription
Add(const System::String&, const System::SharedPtr<ICosPdfPrimitive>&) overrideSet ICosPdfPrimitive to dictionary.
Add(const System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<ICosPdfPrimitive>>&) overrideSet ICosPdfPrimitive to dictionary.
Clear() overrideRemoves all items from the CosPdfDictionary.
Contains(const System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<ICosPdfPrimitive>>&) const overrideDetermines whether the CosPdfDictionary contains a specific value.
ContainsKey(const System::String&) const overrideDetermines whether the CosPdfDictionary contains an element with the specified key.
CopyTo(System::ArrayPtr<System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<ICosPdfPrimitive>>>, int32_t) overrideCopies the elements of the CosPdfDictionary to an Array, starting at a particular Array index.
CosPdfDictionary(const System::SharedPtr<Resources>&)Creates a dictionary from resources.
static CreateEmptyDictionary(const System::SharedPtr<Page>&)Creates an empty dictionary that will be attached to the page.
static CreateEmptyDictionary(const System::SharedPtr<Document>&)Creates an empty dictionary that will be attached to the document.
get_AllKeys() constFull collection of keys. Contains editable and not editable keys.
get_Count() const overrideGets the number of elements contained in the CosPdfDictionary.
get_IsReadOnly() const overrideGets a value indicating whether the CosPdfDictionary is read-only.
get_Keys() const overrideCollection of editable keys.
get_Values() const overrideGets an ICollection containing the values in the CosPdfDictionary.
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<ICosPdfPrimitive>) overrideSets the element with the specified key.
Remove(const System::String&) overrideRemoves the element with the specified key from the CosPdfDictionary.
Remove(const System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<ICosPdfPrimitive>>&) overrideRemoves the first occurrence of a specific object from the CosPdfDictionary.
ToCosPdfDictionary() overrideTries cast this instance to CosPdfDictionary.
TryGetValue(const System::String&, System::SharedPtr<ICosPdfPrimitive>&) const overrideFor access to simple data type like string, name, bool, number. Returns null for other types.

See Also