AllowDrag Property
- Namespace
TXTextControl.ServerVisualisation
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesServer. Core. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.Server. dll
Description
Gets or sets a value indicating whether the view generator can be a source of a Drag&Drop operation. To allow the view generator to accept data, the ServerVisualization.TextViewGenerator.AllowDrop property must be set to true.
Syntax
public bool AllowDrag { get; set; }Public Property AllowDrag As BooleanExamples
The following example applies bold formatting through the text view generator's selection by using TextViewGenerator.AllowDrag.
Selection formattedSelection = textViewGenerator.Selection;
formattedSelection.Bold = true;
textViewGenerator.Selection = formattedSelection;
textViewGenerator.AllowDrag = true;
if (textViewGenerator.AllowDrag)
{
Console.WriteLine("Text View Generator: Allow Drag is enabled.");
}Dim formattedSelection As Selection = textViewGenerator.Selection
formattedSelection.Bold = True
textViewGenerator.Selection = formattedSelection
textViewGenerator.AllowDrag = True
If textViewGenerator.AllowDrag Then
Console.WriteLine("Text View Generator: Allow Drag is enabled.")
End If