Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfArrayExt Class / GetArray<T> Method
The current array.
The index of the value to get.
Indicates whether to convert a single T value to an array.
Indicates whether to handle IPdfNull as a null reference (Nothing in Visual Basic).
Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if errors occur.

In This Topic
    GetArray<T> Method (IPdfArrayExt)
    In This Topic
    Gets the array of T objects at the specified index. Returns null if the array does not exist or cannot be converted to an array of T.
    Syntax
    'Declaration
     
    Public Shared Function GetArray(Of T As IPdfObject)( _
       ByVal array As IPdfArray, _
       ByVal index As System.Integer, _
       ByVal singleToArray As System.Boolean, _
       ByVal allowNulls As System.Boolean, _
       ByVal addWarning As System.Boolean _
    ) As T()
    public static T[] GetArray<T>( 
       IPdfArray array,
       System.int index,
       System.bool singleToArray,
       System.bool allowNulls,
       System.bool addWarning
    )
    where T: IPdfObject

    Parameters

    array
    The current array.
    index
    The index of the value to get.
    singleToArray
    Indicates whether to convert a single T value to an array.
    allowNulls
    Indicates whether to handle IPdfNull as a null reference (Nothing in Visual Basic).
    addWarning
    Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if errors occur.

    Type Parameters

    T

    Return Value

    The array associated with the specified key, or null.
    See Also