Class CosPdfDictionary
Contents
[
Hide
]CosPdfDictionary class
A class for accessing an object’s dictionary.
public class CosPdfDictionary : CosPdfPrimitive, IDictionary<string, ICosPdfPrimitive>
Constructors
| Name | Description |
|---|---|
| CosPdfDictionary(Resources) | Creates a dictionary from resources. |
Properties
| Name | Description |
|---|---|
| AllKeys { get; } | Full collection of keys. Contains editable and not editable keys. |
| Count { get; } | Gets the number of elements contained in the CosPdfDictionary. |
| IsReadOnly { get; } | Gets a value indicating whether the CosPdfDictionary 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 CosPdfDictionary. |
Methods
| Name | Description |
|---|---|
| static CreateEmptyDictionary(Document) | Creates an empty dictionary that will be attached to the document. |
| static CreateEmptyDictionary(Page) | Creates an empty dictionary that will be attached to the page. |
| Add(KeyValuePair<string, ICosPdfPrimitive>) | Set ICosPdfPrimitive to dictionary. |
| Add(string, ICosPdfPrimitive) | Set ICosPdfPrimitive to dictionary. |
| Clear() | Removes all items from the CosPdfDictionary. |
| Contains(KeyValuePair<string, ICosPdfPrimitive>) | Determines whether the CosPdfDictionary contains a specific value. |
| ContainsKey(string) | Determines whether the CosPdfDictionary 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 CosPdfDictionary. |
| Remove(string) | Removes the element with the specified key from the CosPdfDictionary. |
| virtual ToCosPdfBoolean() | Tries cast this instance to CosPdfBoolean. |
| override ToCosPdfDictionary() | Tries cast this instance to CosPdfDictionary. |
| virtual ToCosPdfName() | Tries cast this instance to CosPdfName. |
| virtual ToCosPdfNumber() | Tries cast this instance to CosPdfNumber. |
| virtual ToCosPdfString() | Tries cast this instance to CosPdfString. |
| TryGetValue(string, out ICosPdfPrimitive) | For access to simple data type like string, name, bool, number. Returns null for other types. |
See Also
- class CosPdfPrimitive
- interface ICosPdfPrimitive
- namespace Aspose.Pdf.DataEditor
- assembly Aspose.PDF