Start Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the first character position (one-based) of a text field.
Syntax
public int Start { get; }Public ReadOnly Property Start As IntegerExamples
The following example inserts a Word-compatible text field into a template by using TextField.Start.
TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);
textControl.InputPosition = new InputPosition(textField.Start);
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.InputPosition = New InputPosition(textField.Start)
Console.WriteLine("Text Field is ready for use.")Limitations
Read only.