---
title: "positionInParent"
description: "Returns the position of the top-left in the parent's content area or (0, 0) for the root."
type: "function"
---

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


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun LayoutCoordinates.positionInParent(): Offset
```


Returns the position of the top-left in the parent's content area or (0, 0) for the root.



