alexa
menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class TextMessage

    Represents a class which contains the functionalities for the simple string type of message in SfAIAssistView.

    Inheritance
    System.Object
    TextMessage
    Implements
    System.ComponentModel.INotifyPropertyChanged
    Namespace: Syncfusion.WinForms.AIAssistView
    Assembly: Syncfusion.SfAIAssistView.WinForms.dll
    Syntax
    public class TextMessage : Object, INotifyPropertyChanged

    Constructors

    TextMessage()

    Declaration
    public TextMessage()

    Properties

    Author

    Gets or sets the author to be display in the message.

    Declaration
    public Author Author { get; set; }
    Property Value
    Type
    Author

    DateTime

    Gets or sets the date and time details when the message was created.

    Declaration
    public DateTime DateTime { get; set; }
    Property Value
    Type
    System.DateTime

    IsLiked

    Gets or sets a value representing the user feedback state (like, dislike, or neutral) for the message.

    Declaration
    public Nullable<bool> IsLiked { get; set; }
    Property Value
    Type
    System.Nullable<System.Boolean>

    ShowToolBar

    Gets or sets a value indicating whether the toolbar should be shown for this message.

    Declaration
    public bool ShowToolBar { get; set; }
    Property Value
    Type
    System.Boolean

    Text

    Gets or sets the text to be display as the message.

    Declaration
    public string Text { get; set; }
    Property Value
    Type
    System.String

    ToolBarItems

    Gets or sets the collection of toolbar items associated with the message.

    Declaration
    public ObservableCollection<ResponseToolBarItem> ToolBarItems { get; }
    Property Value
    Type
    System.Collections.ObjectModel.ObservableCollection<ResponseToolBarItem>

    Type

    Gets or sets the indicator that notifies whether the message is bot or user.

    Declaration
    public MessageType Type { get; set; }
    Property Value
    Type
    MessageType

    Methods

    GetToolBarItem(String)

    Gets a toolbar item by name.

    Declaration
    public ResponseToolBarItem GetToolBarItem(string itemName)
    Parameters
    Type Name Description
    System.String itemName

    The toolbar item name.

    Returns
    Type Description
    ResponseToolBarItem

    The toolbar item or null if not found.

    OnIsFavouritedChanged()

    Raises the Syncfusion.WinForms.AIAssistView.TextMessage.IsFavouritedChanged event.

    Declaration
    protected virtual void OnIsFavouritedChanged()

    OnIsLikedChanged()

    Raises the Syncfusion.WinForms.AIAssistView.TextMessage.IsLikedChanged event.

    Declaration
    protected virtual void OnIsLikedChanged()

    SetToolBarItemVisibility(String, Boolean)

    Sets the visibility of a toolbar item by name.

    Declaration
    public void SetToolBarItemVisibility(string itemName, bool visible)
    Parameters
    Type Name Description
    System.String itemName

    The toolbar item name.

    System.Boolean visible

    The visibility state.

    Events

    PropertyChanged

    Occurs when a property value changes.

    Declaration
    public event PropertyChangedEventHandler PropertyChanged
    Event Type
    Type
    System.ComponentModel.PropertyChangedEventHandler

    Implements

    System.ComponentModel.INotifyPropertyChanged
    Back to top Generated by DocFX
    Copyright © 2001 - 2026 Syncfusion Inc. All Rights Reserved