TX Text Control .NET for Windows Forms

LastModificationDate 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 date the document is last modified.

Syntax

public DateTime LastModificationDate { get; set; }

Examples

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

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

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

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