[]
Tries to get the Boolean value associated with the specified key. If the value does not exist or cannot be converted to a Boolean, returns false.
public static bool TryGetBool(this IPdfDict dict, PdfName key, out bool value)
| Type | Name | Description |
|---|---|---|
| IPdfDict | dict | The current dictionary. |
| PdfName | key | The key identifying the value. |
| bool | value | OUT. When this method returns, contains the Boolean value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized. |
| Type | Description |
|---|---|
| bool | true if value exists; otherwise, false. |