[]
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(IPdfArray, int) method if you want to return "raw" value
without any post-processing.
public static T Get<T>(this IPdfArray array, int index, bool addWarning = true) where T : IPdfObject
Public Shared Function [Get](Of T As IPdfObject)(array As IPdfArray, index As Integer, Optional addWarning As Boolean = True) As T
Type | Name | Description |
---|---|---|
IPdfArray | array | The current array. |
int | index | The index of the value to get. |
bool | 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 |
Type | Description |
---|---|
T | The value with the specified index. |
Name | Description |
---|---|
T |