TX Text Control .NET for WPF

DocumentTitle Property

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

Description

Gets or sets the current document's title. It is an empty string, if there is no title contained in the current document.

Syntax

public string DocumentTitle { get; set; }

Examples

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

DocumentSettings documentSettings = textControl.DocumentSettings;

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

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