    

 ## On this page

  

 

 # moveComponent

 Last update: 30.07.2026 

public [moveComponent](move-component.md)(component: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), parent: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html), index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html))

Moves a component.

#### Parameters

componentthe component to moveparentthe name of the parentindexthe index to move to; -1 for end#### Throws

[ModelCenterException](./../-model-center-exception/index.md)