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 Integer

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);
Dim NewField As TXTextControl.TextField = New TXTextControl.TextField()
    NewField.Text = "--------"
    NewField.ID = FieldID
    NewField.DoubledInputPosition = True
    NewField.ShowActivated = True
FieldID += 1
textControl1.TextFields.Add(NewField)

See Also

Text Fields and Hypertext Links - Identifiers and Names.