TX Text Control .NET for Windows Forms

TextField Constructor

Constructor
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Creates a new instance of the TextField class.

Syntax

TextField()

Creates an empty TextField object.

public TextField();

TextField(string)

Creates a TextField object with the specified visible text.

public TextField(string text);
ParameterDescription
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);

Further Reading

  • TX Text Control X9: Ready-to-use Built-in Context Menus –