[]
Tries to gets the array of T objects associated with the specified key.
public static bool TryGetArray<T>(IPdfDict dict, PdfName key, out T[] value, bool singleToArray, bool allowNulls, bool addWarning) where T : IPdfObject
| Type | Name | Description |
|---|---|---|
| IPdfDict | dict | The current dictionary. |
| PdfName | key | The key identifying the array. |
| T[] | value | OUT: The array of |
| bool | singleToArray | Indicates whether to convert a single |
| bool | allowNulls | |
| bool | addWarning | Indicates whether to add a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if errors occur. |
| Type | Description |
|---|---|
| bool | Returns true if no errors occur. |
| Name | Description |
|---|---|
| T |
Tries to get the array associated with the specified key,
if the value does not exist or cannot be converted to an array of T
returns false.
public static bool TryGetArray<T>(this IPdfDict dict, PdfName key, out T[] value, bool singleToArray = false) where T : IPdfObject
| Type | Name | Description |
|---|---|---|
| IPdfDict | dict | The current dictionary. |
| PdfName | key | The key identifying the value. |
| T[] | value | OUT: The value. |
| bool | singleToArray | Indicates whether to convert a single |
| Type | Description |
|---|---|
| bool | true if value exists, false otherwise. |
| Name | Description |
|---|---|
| T |