Skip to main content
All docs
V26.1
  • BlazorChatMessage.Text Property

    Returns the message text.

    Namespace: DevExpress.AIIntegration.Blazor.Chat

    Assembly: DevExpress.AIIntegration.Blazor.Chat.v26.1.dll

    Declaration

    public string Text { get; }

    Property Value

    Type Description
    String

    Message text.

    Remarks

    Use the Text property to get the text content of a BlazorChatMessage.

    If the message contains multiple content items of different types (such as text and files), access them through the Contents property instead.

    The following code snippet displays message text in a custom MessageTemplate:

    <DxAIChat>
        <MessageTemplate>
            <div class="custom-message">
                @context.Text
            </div>
        </MessageTemplate>
    </DxAIChat>
    

    Display AI Chat Message Text

    See Also