Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayExt Class / Get<T> Method
The current array.
The index of the value to get.
Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if value at the specified index can't be converted to the T.

In This Topic
    Get<T> Method (IPdfArrayExt)
    In This Topic
    Gets the value at the specified index, returns a null if the value cannot be converted to a T. Note! This method returns IPdfRef if T is IPdfRef, otherwise the method resolves the reference and returns *actual* object. Use GetItem method if you want to return "raw" value without any post-processing.
    Syntax
    'Declaration
     
    Public Shared Function Get(Of T As IPdfObject)( _
       ByVal array As IPdfArray, _
       ByVal index As System.Integer, _
       Optional ByVal addWarning As System.Boolean _
    ) As T
    public static T Get<T>( 
       IPdfArray array,
       System.int index,
       System.bool addWarning
    )
    where T: IPdfObject

    Parameters

    array
    The current array.
    index
    The index of the value to get.
    addWarning
    Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if value at the specified index can't be converted to the T.

    Type Parameters

    T

    Return Value

    The value with the specified index.
    See Also