docs/io.github.mkohm.detekt.hint.demo/-rectangle/set-height.md
---
title: Rectangle.setHeight -
---
[io.github.mkohm.detekt.hint.demo](../index.html) / [Rectangle](index.html) / [setHeight](./set-height.html)
# setHeight
`fun setHeight(newHeight: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)