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