---
title: "center"
description: "The offset to the point halfway between the left and right and the top and bottom edges of this
rectangle."
type: "property"
---

<div class='type'>Property</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val RoundRect.center: Offset
```


The offset to the point halfway between the left and right and the top and bottom edges of this
rectangle.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Size.center: Offset
```


Returns the `Offset` of the center of the rect from the point of `0, 0` with this `Size`.



