ID Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
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; }Public Property ID As IntegerExamples
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}");Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "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.