[]
Gets the float value at the specified index.
Returns defValue
if the value cannot be converted to a float.
public static float GetFloat(this IPdfArray array, int index, float defValue)
Public Shared Function GetFloat(array As IPdfArray, index As Integer, defValue As Single) As Single
Type | Name | Description |
---|---|---|
IPdfArray | array | The current array. |
int | index | The index of the item to return. |
float | defValue | The default value. |
Type | Description |
---|---|
float | The value at the specified index. |
Gets the float value at the specified index.
If the value cannot be converted to a float,
returns defValue
and adds a warning to
GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog.
public static float? GetFloat(this IPdfArray array, int index, float? defValue)
Public Shared Function GetFloat(array As IPdfArray, index As Integer, defValue As Single?) As Single?
Type | Name | Description |
---|---|---|
IPdfArray | array | The current array. |
int | index | The index of the item to return. |
float? | defValue | The default value. |
Type | Description |
---|---|
float? | The value at the specified index. |