Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictHolderExt Class / TryGetName Method
The current PDF dictionary holder.
The key of the value to get.
OUT: the value associated with the specified key.
Specifies whether to add a warning if the value could not be converted.

In This Topic
    TryGetName Method (IPdfDictHolderExt)
    In This Topic
    Tries to get the PDF name value associated with the specified key.

    Optionally adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value exists but cannot be converted to a PDF name.

    Syntax
    'Declaration
     
    Public Shared Function TryGetName( _
       ByVal pdh As IPdfDictHolder, _
       ByVal key As System.String, _
       ByRef value As System.String, _
       Optional ByVal addWarning As System.Boolean _
    ) As System.Boolean
    public static System.bool TryGetName( 
       IPdfDictHolder pdh,
       System.string key,
       out System.string value,
       System.bool addWarning
    )

    Parameters

    pdh
    The current PDF dictionary holder.
    key
    The key of the value to get.
    value
    OUT: the value associated with the specified key.
    addWarning
    Specifies whether to add a warning if the value could not be converted.

    Return Value

    True if the key was found and the value could be converted to a PDF name, false otherwise.
    See Also