CreationDate Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
Description
Sets the document's creation date which will be saved in the document.
Syntax
public DateTime CreationDate { get; set; }Public Property CreationDate As DateTimeExamples
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);textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()
saveSettings.CreationDate = Date.Today
Console.WriteLine($"Creation Date used by Save Settings: {saveSettings.CreationDate}")
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)