AllowDrag Property
- Namespace
TXTextControl.WPF
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWPF. dll
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 AllowDrop property must be set to true.
Syntax
public bool AllowDrag { get; set; }Public Property AllowDrag As BooleanExamples
The following example uses TextControl.AllowDrag to enable drag-and-drop editing. The configured value is checked before the workflow continues.
textControl.AllowDrag = true;
if (textControl.AllowDrag)
{
Console.WriteLine("Text Control: Allow Drag is enabled.");
}textControl.AllowDrag = True
If textControl.AllowDrag Then
Console.WriteLine("Text Control: Allow Drag is enabled.")
End If