[]
Tries to get the float value at the specified index.
public static bool TryGetFloat(this IPdfArray array, int index, out float value, bool addWarning = true)
Public Shared Function TryGetFloat(array As IPdfArray, index As Integer, ByRef value As Single, Optional addWarning As Boolean = True) As Boolean
Type | Name | Description |
---|---|---|
IPdfArray | array | The current array. |
int | index | The index of the value to get. |
float | value | OUT: The float value. |
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 int. |
Type | Description |
---|---|
bool | true if value exists and can be converted to a float; otherwise false. |
Tries to get the nullable float value at the specified index.
public static bool TryGetFloat(this IPdfArray array, int index, out float? value, bool addWarning = true)
Public Shared Function TryGetFloat(array As IPdfArray, index As Integer, ByRef value As Single?, Optional addWarning As Boolean = True) As Boolean
Type | Name | Description |
---|---|---|
IPdfArray | array | The current array. |
int | index | The index of the value to get. |
float? | value | OUT: The float value. |
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 int. |
Type | Description |
---|---|
bool | true if value exists and can be converted to a float; otherwise false. |