Title Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets a title for the table of contents. An empty string indicates that the table of contents has no title.
Syntax
public string Title { get; set; }Public Property Title As StringExamples
The following example creates a table of contents for the document's heading styles by using TableOfContents.Title.
TableOfContents tableOfContents = new(1, 3) { Name = "Contents", ID = 10 };
textControl.TablesOfContents.Add(tableOfContents);
tableOfContents.Title = "Quarterly report";
if (!string.IsNullOrWhiteSpace(tableOfContents.Title))
{
Console.WriteLine($"Title: {tableOfContents.Title}");
}Dim tableOfContents As New TableOfContents(1, 3) With { .Name = "Contents", .ID = 10 }
textControl.TablesOfContents.Add(tableOfContents)
tableOfContents.Title = "Quarterly report"
If Not String.IsNullOrWhiteSpace(tableOfContents.Title) Then
Console.WriteLine($"Title: {tableOfContents.Title}")
End If