TextField Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Creates a new instance of the TextField class.
Syntax
TextField()
Creates an empty TextField object.
public TextField();Public Sub New()TextField(string)
Creates a TextField object with the specified visible text.
public TextField(string text);Public Sub New(text As String)| Parameter | Description |
|---|---|
| text | Specifies the visible text of the text field. |
Examples
The following example inserts a Word-compatible text field into a template.
TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" })
textControl.TextFields.Add(textField)