CreationDate Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the document's creation date. It is January 1, 0001 in the Gregorian calendar, if there is no creation date contained in the current document.
Syntax
public DateTime CreationDate { get; set; }Public Property CreationDate As DateTimeExamples
The following example configures document settings for the current document by using DocumentSettings.CreationDate.
DocumentSettings documentSettings = textControl.DocumentSettings;
documentSettings.CreationDate = DateTime.Today;
Console.WriteLine($"Creation Date used by Document Settings: {documentSettings.CreationDate}");
documentSettings.DocumentTitle = "Quarterly results";
documentSettings.Author = "Finance team";Dim documentSettings As DocumentSettings = textControl.DocumentSettings
documentSettings.CreationDate = Date.Today
Console.WriteLine($"Creation Date used by Document Settings: {documentSettings.CreationDate}")
documentSettings.DocumentTitle = "Quarterly results"
documentSettings.Author = "Finance team"