Length Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the number of characters which belong to the editable region.
Syntax
public int Length { get; }Public ReadOnly Property Length As IntegerExamples
The following example marks selected contract text as editable by the review team by using EditableRegion.Length.
textControl.Text = "Terms subject to legal review";
textControl.Select(0, textControl.Text.Length);
EditableRegion editableRegion = new("ReviewTeam", 10);
textControl.EditableRegions.Add(editableRegion);
textControl.Select(editableRegion.Start, editableRegion.Length);
Console.WriteLine("Editable Region is ready for use.");textControl.Text = "Terms subject to legal review"
textControl.Select(0, textControl.Text.Length)
Dim editableRegion As New EditableRegion("ReviewTeam", 10)
textControl.EditableRegions.Add(editableRegion)
textControl.Select(editableRegion.Start, editableRegion.Length)
Console.WriteLine("Editable Region is ready for use.")Limitations
Read only.