[]
        
(Showing Draft Content)

GrapeCity.Documents.Pdf.Spec.IPdfDictExt.TryGetBool

TryGetBool Method

TryGetBool(IPdfDict, PdfName, out bool)

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

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

The current dictionary.

PdfName key

The key identifying the value.

bool value

OUT. When this method returns, contains the Boolean value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Returns
Type Description
bool

true if value exists; otherwise, false.