[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetFloat

GetFloat Method

GetFloat(IPdfDict, PdfName, float?)

Gets the nullable Float value associated with the specified key. If the value does not exist or cannot be converted to a Float, returns defValue (which can be null).

Declaration
public static float? GetFloat(this IPdfDict dict, PdfName key, float? defValue)
Public Shared Function GetFloat(dict As IPdfDict, key As PdfName, defValue As Single?) As Single?
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

float? defValue

The default value.

Returns
Type Description
float?

The value associated with the specified key, or defValue.

GetFloat(IPdfDict, PdfName, float)

Gets the Float value associated with the specified key. If the value does not exist or cannot be converted to a Float, returns defValue.

Declaration
public static float GetFloat(this IPdfDict dict, PdfName key, float defValue)
Public Shared Function GetFloat(dict As IPdfDict, key As PdfName, defValue As Single) As Single
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

float defValue

The default value.

Returns
Type Description
float

The value associated with the specified key, or defValue.