[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfArrayExt.GetFloat

GetFloat Method

GetFloat(IPdfArray, int, float)

Gets the float value at the specified index.

Returns defValue if the value cannot be converted to a float.

Declaration
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
Parameters
Type Name Description
IPdfArray array

The current array.

int index

The index of the item to return.

float defValue

The default value.

Returns
Type Description
float

The value at the specified index.

GetFloat(IPdfArray, int, float?)

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.

Declaration
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?
Parameters
Type Name Description
IPdfArray array

The current array.

int index

The index of the item to return.

float? defValue

The default value.

Returns
Type Description
float?

The value at the specified index.