# WRTKit TextEntryControl Class

## Description

The TextEntryControl class is an abstract base class for controls that let a user enter text. Don't instantiate TextEntryControl directly but rather one of its subclasses.

## Inherits from

Control

## Events

- TextChanged

  This event is fired when the user enters new text in the control.

Parent topic: WRTKit API Reference

## getText()

### Syntax

    [String] TextEntryControl.getText(void)

### Description

Retrieves the current text of the text entry control. The value is a plain text string (not XHTML).

### Arguments

This method does not take any arguments.

### Return value

The current text of the text entry control.

## setText()

### Syntax

    [void] TextEntryControl.setText(String text)

### Description

Sets the text value of the text entry control. The text is displayed in the editable area of the control and can be edited by the user provided that the control is not disabled. Setting a text value of null results in no text being shown. The value is a plain text string (not XHTML).

### Arguments

- text

  The text value to set to the text entry control. A value of null results in no text being shown.

### Return value

This method does not return a value.