ID Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets an identifier. It must be a one-based value. A value of zero indicates that the table of contents has no identifier.
Syntax
public int ID { get; set; }Public Property ID As IntegerExamples
The following example creates a table of contents for the document's heading styles by using TableOfContents.ID.
TableOfContents tableOfContents = new(1, 3) { Name = "Contents", ID = 10 };
textControl.TablesOfContents.Add(tableOfContents);
tableOfContents.ID = 100;
Console.WriteLine($"ID used by Table Of Contents: {tableOfContents.ID}");Dim tableOfContents As New TableOfContents(1, 3) With { .Name = "Contents", .ID = 10 }
textControl.TablesOfContents.Add(tableOfContents)
tableOfContents.ID = 100
Console.WriteLine($"ID used by Table Of Contents: {tableOfContents.ID}")