Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayHolderExt Class / TryGetInt Method
The current PDF array holder.
The index of the item to return.
OUT: the value at the specified index.
Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog.

In This Topic
    TryGetInt Method (IPdfArrayHolderExt)
    In This Topic
    Tries to get the integer value at the specified index, optionally adding a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value cannot be converted to an integer.
    Syntax
    'Declaration
     
    Public Shared Function TryGetInt( _
       ByVal pah As IPdfArrayHolder, _
       ByVal index As System.Integer, _
       ByRef value As System.Integer, _
       Optional ByVal addWarning As System.Boolean _
    ) As System.Boolean
    public static System.bool TryGetInt( 
       IPdfArrayHolder pah,
       System.int index,
       out System.int value,
       System.bool addWarning
    )

    Parameters

    pah
    The current PDF array holder.
    index
    The index of the item to return.
    value
    OUT: the value at the specified index.
    addWarning
    Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog.

    Return Value

    True if the value can be converted to an integer, false otherwise.
    See Also