ID 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 subtextpart's identifier. It must be a one-based value. A value of zero indicates that the subtextpart has no identifier.
Syntax
public int ID { get; set; }Public Property ID As IntegerExamples
The following example marks the selected customer name as a named document region by using SubTextPart.ID.
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
SubTextPart subTextPart = new("CustomerName", 10);
textControl.SubTextParts.Add(subTextPart);
subTextPart.ID = 100;
Console.WriteLine($"ID used by Sub Text Part: {subTextPart.ID}");textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim subTextPart As New SubTextPart("CustomerName", 10)
textControl.SubTextParts.Add(subTextPart)
subTextPart.ID = 100
Console.WriteLine($"ID used by Sub Text Part: {subTextPart.ID}")