DoubleClickEvent Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Specifies whether a TextControl.TextFieldDoubleClicked event is raised, if the end-user doubleclicks the text field. If an event is raised, the normal double-click processing, which selects a single word in the text is suppressed. The default setting of this property is true.
Syntax
public bool DoubleClickEvent { get; set; }Public Property DoubleClickEvent As BooleanExamples
The following example inserts a Word-compatible text field into a template by using TextField.DoubleClickEvent.
TextField textField = new ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", new[] { "CustomerName" });
textControl.TextFields.Add(textField);
textField.DoubleClickEvent = true;
if (textField.DoubleClickEvent)
{
Console.WriteLine("Text Field: Double Click Event is enabled.");
}Dim textField As TextField = New ApplicationField(ApplicationFieldFormat.MSWord, "MERGEFIELD", "Customer name", New String() { "CustomerName" })
textControl.TextFields.Add(textField)
textField.DoubleClickEvent = True
If textField.DoubleClickEvent Then
Console.WriteLine("Text Field: Double Click Event is enabled.")
End IfRemarks
If this property is set to true, the default double-click processing is disabled for the text field's text.
See Also
Text Fields and Hypertext Links - Editing Marked Text Fields.