DocumentSubject Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property DocumentSubject As StringExamples
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";Dim documentSettings As DocumentSettings = textControl.DocumentSettings
documentSettings.DocumentSubject = "FY 2026 performance"
If Not String.IsNullOrWhiteSpace(documentSettings.DocumentSubject) Then
Console.WriteLine($"Document Subject: {documentSettings.DocumentSubject}")
End If
documentSettings.DocumentTitle = "Quarterly results"
documentSettings.Author = "Finance team"