    

 ## On this page

  

 

 # getComponent

 Last update: 30.07.2026 

public [getComponent](get-component.md)(index: [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)): [Component](./../-component/index.md)

gets the specified component

#### Return

the specified component

#### Parameters

indexthe component index#### Throws

[ModelCenterException](./../-model-center-exception/index.md)public [getComponent](get-component.md)(name: [String](https://docs.oracle.com/javase/8/docs/api/java/lang/String.html)): [Component](./../-component/index.md)

gets the specified component

#### Return

the specified component

#### Parameters

namethe component name#### Throws

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