New to Telerik UI for WinForms? Start a free 30-day trial

Adapts a ChatTextMessage for the chat view and exposes its attachment and reply data.

Definition

Constructors

Initializes the item with the text message whose attachment and reply data it exposes.

C#
public TextMessageDataItem(ChatTextMessage message)
Parameters:messageChatTextMessage

The text message represented by this item.

Properties

Gets the file attachments associated with this message.

C#
public IList<PromptInputAttachedFile> Attachments { get; }

Gets a value indicating whether this message has any attachments.

C#
public bool HasAttachments { get; }

Gets a value indicating whether this message is a reply to one or more messages.

C#
public bool IsReply { get; }

Gets the messages that this message is replying to.

C#
public IList<ChatMessage> ReplyToMessages { get; }

Gets the typed text-message reference captured when this item was constructed.

C#
public ChatTextMessage TextMessage { get; }

Replacing the inherited Message property does not update this reference.