[]
Tries to get the array of T objects at the specified index.
public static bool TryGetArray<T>(this IPdfArray array, int index, out T[] value, bool singleToArray, bool allowNulls, bool addWarning) where T : IPdfObject
Public Shared Function TryGetArray(Of T As IPdfObject)(array As IPdfArray, index As Integer, ByRef value As T(), singleToArray As Boolean, allowNulls As Boolean, addWarning As Boolean) As Boolean
| Type | Name | Description |
|---|---|---|
| IPdfArray | array | The current array. |
| int | index | The index of the value to get. |
| 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 at the specified index,
if the value does not exist or cannot be converted to an array of T
returns false.
public static bool TryGetArray<T>(this IPdfArray array, int index, out T[] value, bool singleToArray = false) where T : IPdfObject
Public Shared Function TryGetArray(Of T As IPdfObject)(array As IPdfArray, index As Integer, ByRef value As T(), Optional singleToArray As Boolean = False) As Boolean
| Type | Name | Description |
|---|---|---|
| IPdfArray | array | The current array. |
| int | index | The index of the value to get. |
| 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 |