Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / TryGetBool Method
The current dictionary.
The key identifying the 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.

In This Topic
    TryGetBool Method (IPdfDictExt)
    In This Topic
    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.
    Syntax
    'Declaration
     
    Public Shared Function TryGetBool( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByRef value As System.Boolean _
    ) As System.Boolean
    public static System.bool TryGetBool( 
       IPdfDict dict,
       PdfName key,
       out System.bool value
    )

    Parameters

    dict
    The current dictionary.
    key
    The key identifying the value.
    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.

    Return Value

    true if value exists; otherwise, false.
    See Also