# 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.5/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public TreeViewItem<TIdentifier> parentItem
```

### Remarks

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

Additional Resources: [TreeView\<TIdentifier>.DragAndDropArgs.insertAtIndex](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeview1/draganddropargs/insertatindex.md), [TreeView\<TIdentifier>.DragAndDropArgs.dragAndDropPosition](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeview1/draganddropargs/draganddropposition.md), [TreeView\<TIdentifier>.DragAndDropArgs.performDrop](/engine/6000.5/script-reference/unityeditor/imgui/controls/treeview1/draganddropargs/performdrop.md).
