---
title: "boundsInParent"
description: "Returns the bounding box of the child in the parent's content area, including any clipping done
with respect to the parent. For the root, the bounds is positioned at (0, 0) and sized to the
size of the root."
type: "function"
---

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


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


```kotlin
fun LayoutCoordinates.boundsInParent(): Rect
```


Returns the bounding box of the child in the parent's content area, including any clipping done
with respect to the parent. For the root, the bounds is positioned at (0, 0) and sized to the
size of the root.



