TX Text Control .NET Server

DocumentSubject Property

Property|Introduced in 23.0
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 subject string which will be saved in the document.

Syntax

public string DocumentSubject { get; set; }

Examples

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

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

saveSettings.DocumentSubject = "FY 2026 performance";
if (!string.IsNullOrWhiteSpace(saveSettings.DocumentSubject))
{
    Console.WriteLine($"Document Subject: {saveSettings.DocumentSubject}");
}

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