In This Topic
Tries to get the enum value associated with the specified key.
Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value exists but cannot be converted to .
Syntax
'Declaration
Public Shared Function TryGetEnum(Of As {New, Struct})( _
ByVal As IPdfDictHolder, _
ByVal As System.String, _
ByRef As _
) As System.Boolean
public static System.bool TryGetEnum<>(
IPdfDictHolder ,
System.string ,
out
)
where T: new(), struct
Parameters
- pdh
- The current PDF dictionary holder.
- key
- The key of the value to get.
- value
- OUT: the value associated with the specified key.
Type Parameters
- T
Return Value
True if the key was found and the value could be converted to , false otherwise.
See Also