---
title: "center"
description: "Returns the [DpOffset] of the center of the rect from the point of [0, 0] with this [DpSize]."
type: "property"
---

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


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

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


```kotlin
val DpSize.center: DpOffset
```


Returns the `DpOffset` of the center of the rect from the point of `0, 0` with this `DpSize`.



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


```kotlin
val IntSize.center: IntOffset
```


Returns the `IntOffset` of the center of the rect from the point of `0, 0` with this `IntSize`.



