TX Text Control .NET for Windows Forms

AllowDrop 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

Overridden. Gets or sets a value indicating whether the control can accept data that the user drags onto it. This property allows the control to be a target for drop operations. To allow the control to be a source of a Drag&Drop operation the TextControl.AllowDrag property must be set to true. The TextControl.DropFormats property determines which formats the control accepts automatically.

Syntax

public override bool AllowDrop { get; set; }

Examples

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

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