menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ChatUIUserBuilder - ASP.NETMVC-EJ2 API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ChatUIUserBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    ChatUIUserBuilder
    Namespace: Syncfusion.EJ2.InteractiveChat
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class ChatUIUserBuilder : ControlBuilder

    Constructors

    ChatUIUserBuilder()

    Declaration
    public ChatUIUserBuilder()

    ChatUIUserBuilder(ChatUIUser)

    Declaration
    public ChatUIUserBuilder(ChatUIUser model)
    Parameters
    Type Name Description
    ChatUIUser model

    Methods

    AvatarBgColor(String)

    Defines the background color for the user's avatar in the Chat UI component. This property accepts a color in hexadecimal format (e.g., #FFFFFF for white), allowing for custom styling of the avatar's background.

    Declaration
    public ChatUIUserBuilder AvatarBgColor(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ChatUIUserBuilder

    AvatarUrl(String)

    Specifies the URL of the user's avatar image. If the URL is not provided, the user's first and last name initial letters will be used as the avatar.

    Declaration
    public ChatUIUserBuilder AvatarUrl(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ChatUIUserBuilder

    CssClass(String)

    Represents additional CSS classes to style the user's messages in the Chat UI component. This property allows for custom styling by accepting one or more class names as a string.

    Declaration
    public ChatUIUserBuilder CssClass(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ChatUIUserBuilder

    Id(String)

    Specifies the unique identifier for each user in the Chat UI component. Represents a string that uniquely identifies a user for tracking and managing individual users within the chat.

    Declaration
    public ChatUIUserBuilder Id(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ChatUIUserBuilder

    User(String)

    Represents the display name of the user in the Chat UI component.

    Declaration
    public ChatUIUserBuilder User(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ChatUIUserBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved