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


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


<h2 id="gettextlayoutresult-label-action">getTextLayoutResult</h2>

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


```kotlin
fun SemanticsPropertyReceiver.getTextLayoutResult(
    label: String? = null,
    action: ((MutableList<TextLayoutResult>) -> Boolean)?,
)
```


Action to get a Text/TextField node's `TextLayoutResult`. The result is the first element of
layout (the argument of the AccessibilityAction).

#### Parameters

| | |
| --- | --- |
| label | Optional label for this action. |
| action | Action to be performed when the `SemanticsActions.GetTextLayoutResult` is called. |