TX Text Control .NET for WPF

CreationDate Property

Property|Introduced in 29.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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";