[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfArrayExt.TryGetInt

TryGetInt Method

TryGetInt(IPdfArray, int, out int, bool)

Tries to get the int value at the specified index.

Declaration
public static bool TryGetInt(this IPdfArray array, int index, out int value, bool addWarning = true)
Public Shared Function TryGetInt(array As IPdfArray, index As Integer, ByRef value As Integer, Optional addWarning As Boolean = True) As Boolean
Parameters
Type Name Description
IPdfArray array

The current array.

int index

The index of the value to get.

int value

OUT: The integer value.

bool addWarning

Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if value at the specified index can't be converted to int.

Returns
Type Description
bool

true if value exists and can be converted to an int; otherwise false.