Document Solutions for PDF
DS.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictExt Class / GetStringOrName Method
The current dictionary.
The key of the value to get.
The default value.

In This Topic
    GetStringOrName Method
    In This Topic
    Gets the string associated with the specified key. The string can be specified in the PDF as a PDF string or a PDF name.

    Gets defValue if the value does not exist or cannot be converted to a string.

    Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value exists but cannot be converted to a string.
    Syntax
    'Declaration
     
    Public Shared Function GetStringOrName( _
       ByVal dict As IPdfDict, _
       ByVal key As PdfName, _
       ByVal defValue As System.String _
    ) As System.String
    public static System.string GetStringOrName( 
       IPdfDict dict,
       PdfName key,
       System.string defValue
    )

    Parameters

    dict
    The current dictionary.
    key
    The key of the value to get.
    defValue
    The default value.

    Return Value

    The value associated with the specified key.
    See Also