[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetEnum

TryGetEnum Method

TryGetEnum<T>(IPdfDict, PdfName, out T)

Tries to get the enum value associated with the specified key. If the value does not exist or cannot be converted to an enum, returns false.

Declaration
public static bool TryGetEnum<T>(this IPdfDict dict, PdfName key, out T value) where T : struct
Public Shared Function TryGetEnum(Of T As Structure)(dict As IPdfDict, key As PdfName, ByRef value As T) As Boolean
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

T value

OUT. When this method returns, contains the enum value.

Returns
Type Description
bool

true if value exists; otherwise, false.

Type Parameters
Name Description
T