Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / SetPdfEnum<T> Method
The current dictionary.
The key identifying the value.
The value to set.
The default value.

In This Topic
    SetPdfEnum<T> Method
    In This Topic
    Sets the nullable GrapeCity.Documents.Pdf.PdfEnum<TEnum> value associated with the specified key. If the value is null or is equal to defValue, removes the key from the dictionary. Note! The method converts a GrapeCity.Documents.Pdf.PdfEnum<TEnum> to the PdfName.
    Syntax
    'Declaration
     
    Public Shared Sub SetPdfEnum(Of T As {New, Struct})( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByVal value As System.Nullable(Of PdfEnum(Of T)), _
       ByVal defValue As System.Nullable(Of T) _
    ) 
    public static void SetPdfEnum<T>( 
       IPdfDict dict,
       PdfName key,
       System.Nullable<PdfEnum<T>> value,
       System.Nullable<T> defValue
    )
    where T: new(), struct

    Parameters

    dict
    The current dictionary.
    key
    The key identifying the value.
    value
    The value to set.
    defValue
    The default value.

    Type Parameters

    T
    See Also