TX Text Control .NET for Windows Forms

DoubleClickEvent Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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; }

Examples

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.");
}

Remarks

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.