[]
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.
public static bool TryGetEnum<T>(this IPdfDict dict, PdfName key, out T value) where T : struct
| 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. |
| Type | Description |
|---|---|
| bool | true if value exists; otherwise, false. |
| Name | Description |
|---|---|
| T |