[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.Set

Set Method

Set(IPdfDict, PdfName, IPdfObject)

Sets the value associated with the specified key. If value is null, the entry specified by the key will be removed.

Declaration
public static void Set(this IPdfDict dict, PdfName key, IPdfObject value)
Public Shared Sub [Set](dict As IPdfDict, key As PdfName, value As IPdfObject)
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key of the value to set.

IPdfObject value

The value to set.

Set(IPdfDict, PdfName, IPdfName, IPdfName)

Sets the PDF Name value associated with the specified key. If the value is null or is equal to defValue, removes the key from the dictionary.

Declaration
public static void Set(this IPdfDict dict, PdfName key, IPdfName value, IPdfName defValue)
Public Shared Sub [Set](dict As IPdfDict, key As PdfName, value As IPdfName, defValue As IPdfName)
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

IPdfName value

The value to set.

IPdfName defValue

The default value.