Aspose::Pdf::DataEditor::DictionaryEditor class
Contents
[
Hide
]DictionaryEditor class
A class for accessing an document’s tree dictionary (document dictionary, page dictionary, resources dictionary).
class DictionaryEditor : public System::Collections::Generic::IDictionary<System::String, System::SharedPtr<ICosPdfPrimitive>>
Methods
| Method | Description |
|---|---|
| Add(const System::String&, const System::SharedPtr<ICosPdfPrimitive>&) override | Set ICosPdfPrimitive to dictionary. |
| Add(const System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<ICosPdfPrimitive>>&) override | Set ICosPdfPrimitive to dictionary. |
| Clear() override | Removes all items from the DictionaryEditor. |
| Contains(const System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<ICosPdfPrimitive>>&) const override | Determines whether the DictionaryEditor contains a specific value. |
| ContainsKey(const System::String&) const override | Determines whether the DictionaryEditor contains an element with the specified key. |
| CopyTo(System::ArrayPtr<System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<ICosPdfPrimitive>>>, int32_t) override | Copies the elements of the DictionaryEditor to an Array, starting at a particular Array index. |
| DictionaryEditor(const System::SharedPtr<Page>&) | ArgumentNullException |
| DictionaryEditor(const System::SharedPtr<Document>&) | ArgumentNullException |
| DictionaryEditor(const System::SharedPtr<Resources>&) | ArgumentNullException |
| get_AllKeys() const | Full collection of keys. Contains editable and not editable keys. |
| get_Count() const override | Gets the number of elements contained in the DictionaryEditor. |
| get_IsReadOnly() const override | Gets a value indicating whether the DictionaryEditor is read-only. |
| get_Keys() const override | Collection of editable keys. |
| get_Values() const override | Gets an ICollection containing the values in the DictionaryEditor. |
| GetEnumerator() override | Returns an enumerator that iterates through the collection. |
| idx_get(const System::String&) const override | Gets the element with the specified key. |
| idx_set(const System::String&, System::SharedPtr<ICosPdfPrimitive>) override | Sets the element with the specified key. |
| Remove(const System::String&) override | Removes the element with the specified key from the DictionaryEditor. |
| Remove(const System::Collections::Generic::KeyValuePair<System::String, System::SharedPtr<ICosPdfPrimitive>>&) override | Removes the first occurrence of a specific object from the DictionaryEditor. |
| TryGetValue(const System::String&, System::SharedPtr<ICosPdfPrimitive>&) const override | For access to simple data type like string, name, bool, number. Returns null for other types. |
See Also
- Class IDictionary
- Namespace Aspose::Pdf::DataEditor
- Library Aspose.PDF for C++