# Text Message

The **TextMessage** is intended to be used for sending a simple string type message. Its constructor accepts the following parameters.

* **String text**
* **Author author**
* **String status**: when having a **status** defined, the **creationDate** needs to be set as well.
* **DateTime creationDate**: the **creationDate** parameter can be set optionally.

**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);
```

> caption Defining TextMessage

![TextMessage with Status set](https://www.telerik.com/products/wpf/documentation/assets/13b6da2dc519581e45c455fc5f16d0fd/radchat_messages_text_01.png)

## See Also

* [Messages Overview](https://www.telerik.com/products/wpf/documentation/controls/radchat/messages/overview)
