Table of Contents

Method Add

Namespace
PdfSharp.Pdf
Assembly
PdfSharp.dll

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

key string
value PdfItem

Add(KeyValuePair<string, PdfItem>)

Adds an item to the dictionary.

public void Add(KeyValuePair<string, PdfItem> item)

Parameters

item KeyValuePair<string, PdfItem>

Exceptions

ArgumentNullException

If item.Value is null