[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.GetBool

GetBool Method

GetBool(IPdfDict, PdfName, bool)

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

Declaration
public static bool GetBool(this IPdfDict dict, PdfName key, bool defValue)
Public Shared Function GetBool(dict As IPdfDict, key As PdfName, defValue As Boolean) As Boolean
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

bool defValue

The default value.

Returns
Type Description
bool

The value associated with the specified key, or null.

GetBool(IPdfDict, PdfName, bool?)

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

Declaration
public static bool? GetBool(this IPdfDict dict, PdfName key, bool? defValue)
Public Shared Function GetBool(dict As IPdfDict, key As PdfName, defValue As Boolean?) As Boolean?
Parameters
Type Name Description
IPdfDict dict

The current dictionary.

PdfName key

The key identifying the value.

bool? defValue

The default value.

Returns
Type Description
bool?

The value associated with the specified key, or null.