TX Text Control .NET for WPF

ID Property

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

Description

Gets or sets an identifier for a text field. This identifier can be used to uniquely identify a text field.

Syntax

public int ID { get; set; }

Examples

The following example inserts a Word-compatible text field into a template by using TextField.ID.

TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);

textField.ID = 100;
Console.WriteLine($"ID used by Text Field: {textField.ID}");

See Also

Text Fields and Hypertext Links - Identifiers and Names.