[]
Gets the Boolean value associated with the specified key.
If the value does not exist or cannot be converted to a Boolean,
returns defValue
(which can be null).
public static bool GetBool(this IPdfDict dict, PdfName key, bool defValue)
Public Shared Function GetBool(dict As IPdfDict, key As PdfName, defValue As Boolean) As Boolean
Type | Name | Description |
---|---|---|
IPdfDict | dict | The current dictionary. |
PdfName | key | The key identifying the value. |
bool | defValue | The default value. |
Type | Description |
---|---|
bool | The value associated with the specified key, or null. |
Gets the nullable Boolean value associated with the specified key.
If the value does not exist or cannot be converted to a Boolean,
returns defValue
(which can be null).
public static bool? GetBool(this IPdfDict dict, PdfName key, bool? defValue)
Public Shared Function GetBool(dict As IPdfDict, key As PdfName, defValue As Boolean?) As Boolean?
Type | Name | Description |
---|---|---|
IPdfDict | dict | The current dictionary. |
PdfName | key | The key identifying the value. |
bool? | defValue | The default value. |
Type | Description |
---|---|
bool? | The value associated with the specified key, or null. |