[]
Gets the int value at the specified index.
Returns defValue
if the value cannot be converted to an int.
public static int GetInt(this IPdfArray array, int index, int defValue)
Public Shared Function GetInt(array As IPdfArray, index As Integer, defValue As Integer) As Integer
Type | Name | Description |
---|---|---|
IPdfArray | array | The current array. |
int | index | The index of the item to return. |
int | defValue | The default value. |
Type | Description |
---|---|
int | The value at the specified index. |
Gets the nullable int value at the specified index.
Returns defValue
if the value cannot be converted to an int.
public static int? GetInt(this IPdfArray array, int index, int? defValue)
Public Shared Function GetInt(array As IPdfArray, index As Integer, defValue As Integer?) As Integer?
Type | Name | Description |
---|---|---|
IPdfArray | array | The current array. |
int | index | The index of the item to return. |
int? | defValue | The default value. |
Type | Description |
---|---|
int? | The value at the specified index. |