Relates a user-defined name to a text field. This can be any kind of text. This name can be used to uniquely identify a text field.
public string Name { get; set; }
Public Property Name() As String
The following example uses the Name property to return the user-defined name i.e. = "product".
TXTextControl.TextField field = new TXTextControl.TextField("Product");
field.Name = "product";
textControl1.TextFields.Add(field);
foreach (TXTextControl.TextField curfield in textControl1.TextFields)
{
if (curfield.Name == "product")
curfield.Text = "TX Text Control";
}
Dim field As TXTextControl.TextField = New TXTextControl.TextField("Product")
field.Name = "product"
TextControl1.TextFields.Add(field)
For Each curField As TXTextControl.TextField In TextControl1.TextFields
If curField.Name = "product" Then
curField.Text = "TX Text Control"
End If
Next