# Text

<div align="left"><img src="https://963067965-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-MIJW5nbmYRaSNWePAac%2F-MIxu2KP4MClY9gv_q2W%2F-MIxukSFNICFAqkiAMG5%2FProperty-Text.png?alt=media&#x26;token=3dda8ece-02e7-46ba-a462-f05e6b23d980" alt=""></div>

| Property      | Function                                                                                                                                                                                 | Type     |
| ------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| Text          | <p>Sets text<br><br><strong>Actions editor:</strong><br><code>Property > Text > Text</code><br><strong>Code:</strong><br><code>widget.content.text</code></p>                            | `string` |
| Columns       | <p>Sets columns number<br><br><strong>Actions editor:</strong><br><code>Property > Text > Columns</code><br><strong>Code:</strong><br><code>widget.content.columns</code></p>            | `int`    |
| Column margin | <p>Sets column margins<br><br><strong>Actions editor:</strong><br><code>Property > Text > Column margin</code><br><strong>Code:</strong><br><code>widget.content.columnMargin</code></p> | `double` |
| Margins       | <p>Sets text margins<br><br><strong>Actions editor:</strong><br><code>Property > Text > Margins</code><br><strong>Code:</strong><br><code>widget.content.margins</code></p>              | `double` |
| Link          | <p>Sets link<br><br><strong>Actions editor:</strong><br><code>Property > Text > Link</code><br><strong>Code:</strong><br><code>widget.content.link</code></p>                            | `string` |
| ScrollX       | <p>Not documented<br><br><strong>Actions editor:</strong><br><code>Property > Text > ScrollX</code><br><strong>Code:</strong><br><code>widget.content.scrollX</code></p>                 | `double` |
| ScrollY       | <p>Not documented<br><br><strong>Actions editor:</strong><br><code>Property > Text > ScrollY</code><br><strong>Code:</strong><br><code>widget.content.scrollY</code></p>                 | `double` |

## Actions

| Property      | Function                                                                                                                                                                                                                  |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Clear text    | <p><strong>Actions editor:</strong><br><code>Actions > Common > Clear text</code><br><strong>Code:</strong><br><code>widget.content.script.actionClearText()</code></p>                                                   |
| Append text   | <p>Append text to the bottom<br><br><strong>Actions editor:</strong><br><code>Actions > Common > Append text</code><br><strong>Code:</strong><br><code>widget.content.script.actionAppendText(QString newText)</code></p> |
| Set text      | <p><strong>Actions editor:</strong><br><code>Actions > Common > Set text</code><br><strong>Code:</strong><br><code>widget.content.script.actionSetText(QString newText)</code></p>                                        |
| Scroll to top | <p><strong>Actions editor:</strong><br><code>Actions > Common > Scroll to top</code><br><strong>Code:</strong><br><code>widget.content.script.actionScrollTop()</code></p>                                                |
| Scroll to end | <p><strong>Actions editor:</strong><br><code>Actions > Common > Scroll to end</code><br><strong>Code:</strong><br><code>widget.content.script.actionScrollBottom()</code></p>                                             |

## Events

| Property     | Function                                                                                                                                                                                           |
| ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Text changed | <p>Event when text is changed<br><br><strong>Actions editor:</strong><br><code>Event > Text changed</code><br><strong>Code:</strong><br><code>widget.content.script.eventTextChanged()</code></p>  |
| Link clicked | <p>Event when link is clicked<br><br><strong>Actions editor:</strong><br><code>Event > Link clicked</code><br><strong>Code:</strong><br><code>widget.content.script.eventLinkClicked()</code></p>  |
| Scroll       | <p>Event when text is scrolled<br><br><strong>Actions editor:</strong><br><code>Event > Scroll</code><br><strong>Code:</strong><br><code>widget.content.script.eventScroll()</code></p>            |
| Scroll stop  | <p>Event when scroll is finished<br><br><strong>Actions editor:</strong><br><code>Event > Scroll stop</code><br><strong>Code:</strong><br><code>widget.content.script.eventScrollStop()</code></p> |
