[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetInt

GetInt Method

GetInt(IPdfDict, PdfName, int?)

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

Declaration
public static int? GetInt(this IPdfDict dict, PdfName key, int? defValue)
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

int? defValue

The default value.

Returns
Type Description
int?

The value associated with the specified key, or defValue.

GetInt(IPdfDict, PdfName, int)

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

Declaration
public static int GetInt(this IPdfDict dict, PdfName key, int defValue)
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

int defValue

The default value.

Returns
Type Description
int

The value associated with the specified key, or defValue.