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

Adapts an AI text message for the chat view and stores its current vote state.

Definition

Constructors

Initializes a data item for an AI-generated text message.

C#
public AIChatMessageDataItem(AIChatTextMessage message)
Parameters:messageAIChatTextMessage

The AI response represented by this item.

Exceptions: NullReferenceException

message is null.

Properties

Gets whether the underlying AI message displays its response-action buttons.

C#
public bool ShowButtonsArea { get; }

Returns true if the current message is not an AIChatTextMessage.

Gets or sets the vote currently stored for this response.

C#
public VoteType VoteType { get; set; }

The default is Neutral; assigning a different value raises PropertyChanged.

Methods

Raises the owning chat element's copy event for this message; unless a handler marks the event handled, an AI text message's text is copied to the clipboard.

C#
protected virtual void OnCopy()

Raises the owning chat element's regeneration event for this response.

C#
protected virtual void OnRegenerateResponse()

The event notifies the application; it does not generate a replacement response by itself.

Notifies the owning chat element of a vote and stores that vote without raising a property-change notification.

C#
protected virtual void OnUserVoted(VoteType voteType)
Parameters:voteTypeVoteType

The vote selected by the user.