Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / SetDeviceRGBColor Method
The current dictionary.
The key of the value to set.
The value to set.
The default value.

In This Topic
    SetDeviceRGBColor Method
    In This Topic
    Sets the RGB System.Drawing.Color value associated with the specified key (in a PDF an RGB System.Drawing.Color should be represented as an array of 3 floats).
    Syntax
    'Declaration
     
    Public Shared Sub SetDeviceRGBColor( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByVal value As System.Nullable(Of Color), _
       ByVal defValue As System.Nullable(Of Color) _
    ) 
    public static void SetDeviceRGBColor( 
       IPdfDict dict,
       PdfName key,
       System.Nullable<Color> value,
       System.Nullable<Color> defValue
    )

    Parameters

    dict
    The current dictionary.
    key
    The key of the value to set.
    value
    The value to set.
    defValue
    The default value.
    See Also