Length 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 the number of characters in a text field.
Syntax
public int Length { get; }Public ReadOnly Property Length As IntegerExamples
The following example inserts a Word-compatible text field into a template by using TextField.Length.
TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);
textControl.Select(textField.Start, textField.Length);
Console.WriteLine("Text Field is ready for use.");Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" })
textControl.TextFields.Add(textField)
textControl.Select(textField.Start, textField.Length)
Console.WriteLine("Text Field is ready for use.")Limitations
Read only.