TX Text Control .NET for Windows Forms

CreationDate Property

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

Description

Sets the document's creation date which will be saved in the document.

Syntax

public DateTime CreationDate { get; set; }

Examples

The following example configures how the current document is exported to WordprocessingML by using SaveSettings.CreationDate.

textControl.Text = "Quarterly results";
SaveSettings saveSettings = new();

saveSettings.CreationDate = DateTime.Today;
Console.WriteLine($"Creation Date used by Save Settings: {saveSettings.CreationDate}");

textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings);