Specifies whether the text of a text field can be changed by the end-user while a TX Text Control document is being edited. The default setting of this property is true.

Syntax

public bool Editable { get; set; }

Examples

The following example uses the Editable property and sets its value to false. Now the text of a text field cannot be changed by the end-user while a TX Text Control document is being edited.

TXTextControl.TextField field = new TXTextControl.TextField("Product");
field.Name = "product";
field.Editable = false;
textControl1.TextFields.Add(field);

foreach (TXTextControl.TextField curfield in textControl1.TextFields)
{
    if (curfield.Name == "product")
        curfield.Text = "TX Text Control";
}

See Also

Text Fields and Hypertext Links - Editing Marked Text Fields.