DocumentTitle Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
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; }Public Property DocumentTitle As StringExamples
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";Dim documentSettings As DocumentSettings = textControl.DocumentSettings
documentSettings.DocumentTitle = "Quarterly results"
If Not String.IsNullOrWhiteSpace(documentSettings.DocumentTitle) Then
Console.WriteLine($"Document Title: {documentSettings.DocumentTitle}")
End If
documentSettings.DocumentTitle = "Quarterly results"
documentSettings.Author = "Finance team"