Method Add
Add(string, PdfItem)
Adds the specified value to the dictionary. If the value is an indirect object, the PdfReference is added instead. If the value is a direct object that war previously added to another dictionary or array, an exception is thrown.
public void Add(string key, PdfItem value)
Parameters
keystringvaluePdfItem
Add(KeyValuePair<string, PdfItem>)
Adds an item to the dictionary.
public void Add(KeyValuePair<string, PdfItem> item)
Parameters
itemKeyValuePair<string, PdfItem>
Exceptions
- ArgumentNullException
If item.Value is null