AllowDrop Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
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; }Public Overrides Property AllowDrop As BooleanExamples
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();textControl.AllowDrop = True
textControl.Update()