Version

OnSelectionDragStart Method

Called when starting to drag the selection
Syntax
'Declaration
 
Protected Overridable Sub OnSelectionDragStart() 
protected virtual void OnSelectionDragStart()
Example
The following sample code illustrates some of the information available in the SelectionDragStart event.

For an overview of how to handle events in Visual Basic or Visual C#, see Event Handlers in Visual Basic and Visual C#. For specific information and code examples illustrating how to consume events in your application, see Consuming Events in the .NET Framework Developer's Guide.

Imports Infragistics.Win.UltraWinTree

Private Sub ultraTree1_SelectionDragStart(ByVal sender As Object, ByVal e As System.EventArgs) Handles ultraTree1.SelectionDragStart

    Dim tree As Infragistics.Win.UltraWinTree.UltraTree

    tree = sender

    ' Begin a DragDrop operation
    tree.DoDragDrop(tree.SelectedNodes, DragDropEffects.Move)

    ' Note: Refer to the 'UltraTree Drag and Drop VB' sample
    ' to see how drag/drop can be implemented.

End Sub
using System.Diagnostics;
using Infragistics.Win.UltraWinTree;

private void ultraTree1_SelectionDragStart(object sender, System.EventArgs e)
{

	Infragistics.Win.UltraWinTree.UltraTree tree;
	
	tree = sender as Infragistics.Win.UltraWinTree.UltraTree;

	// Begin a DragDrop operation
	tree.DoDragDrop(tree.SelectedNodes, DragDropEffects.Move);

	// Note: Refer to the 'UltraTree Drag and Drop CS' sample
	// to see how drag/drop can be implemented.

}
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also