[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.SetColor

SetColor Method

SetColor(IPdfDict, PdfName, Color?, Color?)

Sets the Color 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 SetColor(this IPdfDict dict, PdfName key, Color? value, Color? defValue)
Public Shared Sub SetColor(dict As IPdfDict, key As PdfName, value As Color?, defValue As Color?)
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

Color? value

The value to set.

Color? defValue

The default value.