Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / TryGetPdfEnum<T> Method
The current dictionary.
The key identifying the value.
OUT. When this method returns, contains the enum value.

In This Topic
    TryGetPdfEnum<T> Method
    In This Topic
    Tries to get the GrapeCity.Documents.Pdf.PdfEnum<TEnum> value associated with the specified key. If the value does not exist or cannot be converted to an enum, returns false.
    Syntax
    'Declaration
     
    Public Shared Function TryGetPdfEnum(Of T As {New, Struct})( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByRef value As PdfEnum(Of T) _
    ) As System.Boolean
    public static System.bool TryGetPdfEnum<T>( 
       IPdfDict dict,
       PdfName key,
       out PdfEnum<T> value
    )
    where T: new(), struct

    Parameters

    dict
    The current dictionary.
    key
    The key identifying the value.
    value
    OUT. When this method returns, contains the enum value.

    Type Parameters

    T

    Return Value

    true if value exists; otherwise, false.
    See Also