[]
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.
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
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. |
Type | Description |
---|---|
bool | true if value exists; otherwise, false. |
Name | Description |
---|---|
T |