# TreeView.DragAndDropArgs

> Method arguments for the TreeView.HandleDragAndDrop virtual method.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.7/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
protected struct TreeView.DragAndDropArgs
```

## Fields

| Value                                                                                                                             | Description                                                                                                                                                                                                                               |
| --------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [dragAndDropPosition](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview/draganddropargs/draganddropposition.md) | When dragging items the current drag can have the following 3 positions relative to the items: Upon an item, Between two items or Outside items.                                                                                          |
| [insertAtIndex](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview/draganddropargs/insertatindex.md)             | This index refers to the index in the children list of the [TreeView.DragAndDropArgs.parentItem](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview/draganddropargs/parentitem.md) where the current drag is positioned. |
| [parentItem](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview/draganddropargs/parentitem.md)                   | The parent item is set if the drag is either upon this item or between two of its children.                                                                                                                                               |
| [performDrop](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview/draganddropargs/performdrop.md)                 | This value is false as long as the mouse button is down, when the mouse button is released it is true.                                                                                                                                    |

## Operators

| Operator                                                                                                              | Description                                                                    |
| --------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| [DragAndDropArgs](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview/draganddropargs/op-implicit.md) | Implicitly convert between DragAndDropArgs on TreeView, and TreeView\\\<int\\> |
