# childIndex

> The child index under the _parentId that the drag-and-drop operation targets. Used only for trees.

## Definition

* **Type:** Property
* **Namespace:** [UnityEngine.UIElements](/engine/6000.6/script-reference/unityengine/uielements.md)
* **Assembly:** UnityEngine.UIElementsModule

```csharp
public int childIndex { get; }
```

### Remarks

Will always be -1 for drag-and-drop operations in list views.
