TX Text Control .NET for WPF

DocumentTitle Property

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

Description

Sets the document's title that will be saved in the document.

Syntax

public string DocumentTitle { get; set; }

Examples

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

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

saveSettings.DocumentTitle = "Quarterly results";
if (!string.IsNullOrWhiteSpace(saveSettings.DocumentTitle))
{
    Console.WriteLine($"Document Title: {saveSettings.DocumentTitle}");
}

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