# insertAtIndex

> This index refers to the index in the children list of the TreeView<TIdentifier>.DragAndDropArgs.parentItem where the current drag is positioned.

## Definition

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

```csharp
public int insertAtIndex
```

### Remarks

Use this index to control what should happen when items are dropped. This value is 0 or higher if the dragPosition is BetweenItems.

Additional Resources: [TreeView\<TIdentifier>.DragAndDropArgs.dragAndDropPosition](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview1/draganddropargs/draganddropposition.md).
