TX Text Control .NET for Windows Forms

AllowDrag Property

Property|Introduced in 15.1
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.Windows.Forms.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets or sets a value indicating whether the control can be a source of a Drag&Drop operation. To allow the control to accept data that the user drags onto it, the TextControl.AllowDrop property must be set to true.

Syntax

public bool AllowDrag { get; set; }

Examples

The following example uses TextControl.AllowDrag to enable drag-and-drop editing. The change is then applied to the active document or user interface.

textControl.AllowDrag = true;
textControl.Update();