[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetPdfEnum

TryGetPdfEnum Method

TryGetPdfEnum<T>(IPdfDict, PdfName, out PdfEnum<T>)

Tries to get the PdfEnum<TEnum> 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 TryGetPdfEnum<T>(this IPdfDict dict, PdfName key, out PdfEnum<T> value) where T : struct
Public Shared Function TryGetPdfEnum(Of T As Structure)(dict As IPdfDict, key As PdfName, ByRef value As PdfEnum(Of T)) As Boolean
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

PdfEnum<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