PDFsharp-net6

PdfDate

Namespace: PdfSharp.Pdf

Represents a direct date value.

public sealed class PdfDate : PdfItem, System.ICloneable

Inheritance ObjectPdfItemPdfDate
Implements ICloneable

Properties

Value

Gets the value as DateTime.

public DateTime Value { get; }

Property Value

DateTime

Constructors

PdfDate()

Initializes a new instance of the PdfDate class.

public PdfDate()

PdfDate(String)

Initializes a new instance of the PdfDate class.

public PdfDate(string value)

Parameters

value String

PdfDate(DateTime)

Initializes a new instance of the PdfDate class.

public PdfDate(DateTime value)

Parameters

value DateTime

Methods

ToString()

Returns the value in the PDF date format.

public string ToString()

Returns

String

WriteObject(PdfWriter)

Writes the value in the PDF date format.

internal void WriteObject(PdfWriter writer)

Parameters

writer PdfWriter