# Text Message

The `TextMessage` class is intended to be used for sending a simple string type message. It exposes the following properties:

* `Text`—The Text property gets or sets the text that will be displayed in the TextMessage instance.
* `Author`—The Author property provides information about the author of the text message.
* `Status`—This property allows you to specify a status for the TextMessage instance.
* `CreationDate`—This property provides the ability to specify a DateTime object for the creation date of the text message.

> important In order to display a status for the message, the `CreationDate` property needs to be set as well.

#### **Defining a TextMessage**

```C#
var textMessage = new TextMessage(this.currentAuthor, "Some text message", "sent", DateTime.Now);
textMessage.InlineViewModel.StatusVisibility = Visibility.Visible;

this.chat.AddMessage(textMessage);
```

**RadChat with TextMessage**

![RadChat with TextMessage](https://www.telerik.com/winui/documentation/assets/0eb2f791c7723f912eed070619a7b676/radchat-text-message-0.png)
