[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfArrayExt.GetInt

GetInt Method

GetInt(IPdfArray, int, int)

Gets the int value at the specified index.

Returns defValue if the value cannot be converted to an int.

Declaration
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
Parameters
Type Name Description
IPdfArray array

The current array.

int index

The index of the item to return.

int defValue

The default value.

Returns
Type Description
int

The value at the specified index.

GetInt(IPdfArray, int, int?)

Gets the nullable int value at the specified index.

Returns defValue if the value cannot be converted to an int.

Declaration
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?
Parameters
Type Name Description
IPdfArray array

The current array.

int index

The index of the item to return.

int? defValue

The default value.

Returns
Type Description
int?

The value at the specified index.