TX Text Control .NET for Windows Forms

DocumentTitle Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets the document's title. It is an empty string, if there is no title saved in the loaded document.

Syntax

public string DocumentTitle { get; }

Examples

The following example reads LoadSettings.DocumentTitle after the template has been loaded.

LoadSettings loadSettings = new();
textControl.Load("template.docx", StreamType.WordprocessingML, loadSettings);
Console.WriteLine($"Document Title: {loadSettings.DocumentTitle}");

Limitations

Read only.