Documents for PDF .NET Edition
GrapeCity.Documents.Pdf Assembly / GrapeCity.Documents.Pdf.Spec Namespace / IPdfDictHolderExt Class / GetDateTime Method
The current PDF dictionary holder.
The key of the value to get.
The default value.

In This Topic
    GetDateTime Method
    In This Topic
    Gets the GrapeCity.Documents.Pdf.PdfDateTime object associated with the specified key (in a PDF a GrapeCity.Documents.Pdf.PdfDateTime should be represented as a PDF string).

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

    Adds a warning to GrapeCity.Documents.Pdf.GcPdfDocument.ParserLog if the value cannot be converted to a GrapeCity.Documents.Pdf.PdfDateTime.
    Syntax
    'Declaration
     
    Public Shared Function GetDateTime( _
       ByVal pdh As IPdfDictHolder, _
       ByVal key As System.String, _
       ByVal defValue As System.Nullable(Of PdfDateTime) _
    ) As System.Nullable(Of PdfDateTime)
    public static System.Nullable<PdfDateTime> GetDateTime( 
       IPdfDictHolder pdh,
       System.string key,
       System.Nullable<PdfDateTime> 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