TX Text Control .NET Server

DocumentTitle Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

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);