TX Text Control .NET Server

DocumentSubject Property

Property|Introduced in 29.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

Gets or sets the subject string of the current document. It is an empty string, if there is no subject string contained in the document.

Syntax

public string DocumentSubject { get; set; }

Examples

The following example configures document settings for the current document by using DocumentSettings.DocumentSubject.

DocumentSettings documentSettings = textControl.DocumentSettings;

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

documentSettings.DocumentTitle = "Quarterly results";
documentSettings.Author = "Finance team";