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

Carries a custom overlay element and selects whether the chat displays it as a popup or an input-blocking overlay.

Definition

Constructors

Initializes an overlay message for the standard overlay surface.

C#
public ChatOverlayMessage(BaseChatOverlay overlayElement, Author author, DateTime timeStamp)
Parameters:overlayElementBaseChatOverlay

The custom overlay content to display.

authorAuthor

The author associated with the message.

timeStampDateTime

The time associated with the message.

Initializes an overlay message with a display surface and application-defined user data.

C#
public ChatOverlayMessage(BaseChatOverlay overlayElement, bool showAsPopup, Author author, DateTime timeStamp, object userData)
Parameters:overlayElementBaseChatOverlay

The custom overlay content to display.

showAsPopupbool

true to display the content in the popup surface; otherwise, display it as an overlay that hides the prompt input.

authorAuthor

The author associated with the message.

timeStampDateTime

The time associated with the message.

userDataobject

Application-defined data associated with the message.

Initializes an overlay message and selects its display surface.

C#
public ChatOverlayMessage(BaseChatOverlay overlayElement, bool showAsPopup, Author author, DateTime timeStamp)
Parameters:overlayElementBaseChatOverlay

The custom overlay content to display.

showAsPopupbool

true to display the content in the popup surface; otherwise, display it as an overlay that hides the prompt input.

authorAuthor

The author associated with the message.

timeStampDateTime

The time associated with the message.

Properties

Gets the custom overlay element carried by this message.

C#
public BaseChatOverlay OverlayElement { get; }

Gets or sets whether the chat displays the overlay in its popup surface.

C#
public bool ShowAsPopup { get; set; }

The default is false. The chat reads this setting when the message is displayed; changing it does not move an already displayed overlay.