Version: 2017.1

TreeView.SetupDragAndDrop

Cambiar al Manual
protected void SetupDragAndDrop (IMGUI.Controls.TreeView.SetupDragAndDropArgs args);

Descripción

This function is called when CanStartDrag returns true.

Override this function to set the global DragAndDrop state and set which items can be dragged and dropped. Use FindRows to convert the dragged IDs to TreeViewItems if needed.

You control TreeView drag and drop in the following order:
1) override CanStartDrag to enable dragging TreeViewItems.
2) override SetupDragAndDrop to set which TreeViewItems are dragged.
3) override HandleDragAndDrop to control the drag and drop behavior of the TreeView.


See Also: DragAndDrop.