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

Represents a chat message that displays a set of suggested actions to the user.

This message type is typically used in conversational interfaces to present users with a list of predefined actions or responses they can select from. It extends the base ChatMessage class to include suggested actions relevant to the current conversation context.

Definition

Constructors

Initializes a message with suggested actions and application-defined user data.

C#
public ChatSuggestedActionsMessage(IEnumerable<SuggestedActionDataItem> suggestedActions, Author author, DateTime timeStamp, object userData)
Parameters:suggestedActionsIEnumerable<SuggestedActionDataItem>

The actions the chat should display when this message is added.

authorAuthor

The author associated with the message.

timeStampDateTime

The time associated with the message.

userDataobject

Application-defined data associated with the message.

Initializes a message with suggested actions and no additional user data.

C#
public ChatSuggestedActionsMessage(IEnumerable<SuggestedActionDataItem> suggestedActions, Author author, DateTime timeStamp)
Parameters:suggestedActionsIEnumerable<SuggestedActionDataItem>

The actions the chat should display when this message is added.

authorAuthor

The author associated with the message.

timeStampDateTime

The time associated with the message.

Properties

Gets or sets whether the horizontal scrollbar is shown for this message's suggested-action list.

C#
public bool ShowScrollBar { get; set; }

AddMessage(ChatMessage) reads this value when adding the message; changing it later does not update the displayed list automatically.

Gets or sets the action data items used to populate the suggested-action list when this message is added.

C#
public IEnumerable<SuggestedActionDataItem> SuggestedActions { get; set; }

Changing this sequence does not rebuild an already displayed action list.