# parentItem

> The parent item is set if the drag is either upon this item or between two of its children.

## Definition

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

```csharp
public TreeViewItem parentItem
```

### Remarks

Use this value to determine if the drag is value and what happens when items are dropped.

Additional Resources: [TreeView.DragAndDropArgs.insertAtIndex](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview/draganddropargs/insertatindex.md), [TreeView.DragAndDropArgs.dragAndDropPosition](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview/draganddropargs/draganddropposition.md), [TreeView.DragAndDropArgs.performDrop](/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview/draganddropargs/performdrop.md).
