Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictHolderExt Class / GetLang Method / GetLang(IPdfDictHolder,String,PdfLang) Method
The current PDF dictionary holder.
The key of the value to get.
The default value.

In This Topic
    GetLang(IPdfDictHolder,String,PdfLang) Method
    In This Topic
    Gets the GrapeCity.Documents.Pdf.PdfLang object associated with the specified key (in the PDF the PdfLang object should be represented as a PDF string).

    Gets defValue if the value does not exist or cannot be converted to a GrapeCity.Documents.Pdf.PdfLang.

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

    Parameters

    pdh
    The current PDF dictionary holder.
    key
    The key of the value to get.
    defValue
    The default value.

    Return Value

    The value associated with the specified key.
    See Also