[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetFloat

TryGetFloat Method

TryGetFloat(IPdfDict, PdfName, out float)

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

Declaration
public static bool TryGetFloat(this IPdfDict dict, PdfName key, out float value)
Public Shared Function TryGetFloat(dict As IPdfDict, key As PdfName, ByRef value As Single) As Boolean
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

float value

OUT. When this method returns, contains the Float value.

Returns
Type Description
bool

true if value exists; otherwise, false.