TryGetEnum<T> Method (IPdfDictExt)
In This Topic
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.
Syntax
'Declaration
Public Shared Function TryGetEnum(Of As {New, Struct})( _
ByVal As IPdfDict, _
ByVal As PdfName, _
ByRef As _
) As System.Boolean
public static System.bool TryGetEnum<>(
IPdfDict ,
PdfName ,
out
)
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