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 uses the TextField class and shows how to insert a new field i.e. NewField and increase its ID i.e. FieldID.

TXTextControl.TextField NewField = new TXTextControl.TextField();
       NewField.Text = "--------";
       NewField.ID = FieldID;  // ID property set to FieldID
       NewField.DoubledInputPosition = true;
       NewField.ShowActivated = true;
FieldID += 1;
textControl1.TextFields.Add(NewField);

See Also

Text Fields and Hypertext Links - Identifiers and Names.