[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetInt

TryGetInt Method

TryGetInt(IPdfDict, PdfName, out int)

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

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

The current dictionary.

PdfName key

The key identifying the value.

int value

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

Returns
Type Description
bool

true if value exists; otherwise, false.