menu

Blazor

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class MessageTemplateContext - Blazor API Reference | Syncfusion

    Show / Hide Table of Contents

    Class MessageTemplateContext

    Inheritance
    System.Object
    MessageTemplateContext
    Namespace: Syncfusion.Blazor.InteractiveChat
    Assembly: Syncfusion.Blazor.dll
    Syntax
    public class MessageTemplateContext : Object

    Constructors

    MessageTemplateContext()

    Declaration
    public MessageTemplateContext()

    Properties

    Index

    Gets or sets the index of the message in the SfChatUI component.

    Declaration
    public int Index { get; set; }
    Property Value
    Type Description
    System.Int32

    An System.Int32 representing the index of the message. The default value is -1.

    Remarks

    This property indicates the position of the message within the list of messages, allowing for easy reference to specific message items.

    Message

    Gets or sets the chat message data in the SfChatUI component.

    Declaration
    public ChatMessage Message { get; set; }
    Property Value
    Type Description
    ChatMessage

    A ChatMessage representing the message content. The default value is null.

    Remarks

    This property contains the details of the chat message being rendered in the SfChatUI component.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved