Editable Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
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; }Public Property Editable As BooleanExamples
The following example inserts a Word-compatible text field into a template by using TextField.Editable.
TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);
textField.Editable = true;
if (textField.Editable)
{
Console.WriteLine("Text Field: Editable is enabled.");
}Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" })
textControl.TextFields.Add(textField)
textField.Editable = True
If textField.Editable Then
Console.WriteLine("Text Field: Editable is enabled.")
End IfSee Also
Text Fields and Hypertext Links - Editing Marked Text Fields.