[]
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)
| 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)
| 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. |