LastModificationDate 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 date the document is last modified.
Syntax
public DateTime LastModificationDate { get; set; }Public Property LastModificationDate As DateTimeExamples
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);textControl.Text = "Quarterly results"
Dim saveSettings As New SaveSettings()
saveSettings.LastModificationDate = Date.Today
Console.WriteLine($"Last Modification Date used by Save Settings: {saveSettings.LastModificationDate}")
textControl.Save("quarterly-results.docx", StreamType.WordprocessingML, saveSettings)