Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictHolderExt Class / SetPdfEnum<T> Method
The current PDF dictionary holder.
The key of the value to get.
The value to set.
The default value.

In This Topic
    SetPdfEnum<T> Method
    In This Topic
    Sets a value with specified key, the value will be removed from dictionary if value equals to defValue.
    Syntax
    'Declaration
     
    Public Shared Sub SetPdfEnum(Of T As {New, Struct})( _
       ByVal pdh As IPdfDictHolder, _
       ByVal key As System.String, _
       ByVal value As System.Nullable(Of PdfEnum(Of T)), _
       ByVal defValue As System.Nullable(Of T) _
    ) 
    public static void SetPdfEnum<T>( 
       IPdfDictHolder pdh,
       System.string key,
       System.Nullable<PdfEnum<T>> value,
       System.Nullable<T> defValue
    )
    where T: new(), struct

    Parameters

    pdh
    The current PDF dictionary holder.
    key
    The key of the value to get.
    value
    The value to set.
    defValue
    The default value.

    Type Parameters

    T
    See Also