TX Text Control .NET Server

TextField Constructor

Constructor
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

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 –