[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetArray

GetArray Method

GetArray<T>(IPdfDict, PdfName, bool)

Gets the array of T objects associated with the specified key. Returns null if the array does not exist or cannot be converted to an array of T.

Declaration
public static T[] GetArray<T>(this IPdfDict dict, PdfName key, bool singleToArray = false) where T : IPdfObject
Public Shared Function GetArray(Of T As IPdfObject)(dict As IPdfDict, key As PdfName, Optional singleToArray As Boolean = False) As T()
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the array.

bool singleToArray

Indicates whether to convert a single T value to an array.

Returns
Type Description
T[]

The array associated with the specified key, or null.

Type Parameters
Name Description
T