[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfArrayExt.TryGetFloat

TryGetFloat Method

TryGetFloat(IPdfArray, int, out float, bool)

Tries to get the float value at the specified index.

Declaration
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
Parameters
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.

Returns
Type Description
bool

true if value exists and can be converted to a float; otherwise false.

TryGetFloat(IPdfArray, int, out float?, bool)

Tries to get the nullable float value at the specified index.

Declaration
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
Parameters
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.

Returns
Type Description
bool

true if value exists and can be converted to a float; otherwise false.