# TextField

Xojo provides a <span class="title-ref">TextField</span> control for desktop, mobile and web projects:

- `DesktopTextField</api/user_interface/desktop/desktoptextfield>`
- `MobileTextField</api/user_interface/mobile/mobiletextfield>`
- `WebTextField</api/user_interface/web/webtextfield>`

## Common members

These events and properties are both common amongst the desktop, mobile and web versions of the control and are the most commonly used. See the individual controls for more members and details.

### Events

| Name             | Description                                                                        |
|------------------|------------------------------------------------------------------------------------|
| TextChanged      | The text has been changed.                                                         |
| SelectionChanged | The text selection has changed. This event is only supported for desktop projects. |

### Properties

| Name            | Description                                                                                               |
|-----------------|-----------------------------------------------------------------------------------------------------------|
| SelectionLength | The number of characters in the section. This property is only supported for desktop projects.            |
| SelectionStart  | The position of the first character in the section. This property is only supported for desktop projects. |
| Text            | All of the text in the <span class="title-ref">TextField</span>.                                          |

<div class="seealso">

`DesktopTextField</api/user_interface/desktop/desktoptextfield>`, `MobileTextField</api/user_interface/mobile/mobiletextfield>` and `WebTextField</api/user_interface/web/webtextfield>`

</div>
