    

 ## On this page

  

 

 # getIndexInParent

 Last update: 30.07.2026 

public [getIndexInParent](get-index-in-parent.md)(): [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)

Gets the index of the component in its parent assembly. This includes both assemblies and components and can be used to generate an index for ModelCenter.moveTo().

#### Return

the index