Name 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 name of the subtextpart. An empty string indicates that the subtextpart has no name.
Syntax
public string Name { get; set; }Public Property Name As StringExamples
The following example marks the selected customer name as a named document region by using SubTextPart.Name.
textControl.Text = "Customer: Contoso Ltd.";
textControl.Select(10, 12);
SubTextPart subTextPart = new("CustomerName", 10);
textControl.SubTextParts.Add(subTextPart);
subTextPart.Name = "SubTextPart1";
if (!string.IsNullOrWhiteSpace(subTextPart.Name))
{
Console.WriteLine($"Name: {subTextPart.Name}");
}textControl.Text = "Customer: Contoso Ltd."
textControl.Select(10, 12)
Dim subTextPart As New SubTextPart("CustomerName", 10)
textControl.SubTextParts.Add(subTextPart)
subTextPart.Name = "SubTextPart1"
If Not String.IsNullOrWhiteSpace(subTextPart.Name) Then
Console.WriteLine($"Name: {subTextPart.Name}")
End If