New to Telerik UI for WinFormsStart a free 30-day trial

Represents the context menu for chat messages with Reply, Copy, Edit and Delete options.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class ChatMessageContextMenu : RadContextMenu, IComponent, IDisposable, IAnalyticsProvider

Inheritance: objectMarshalByRefObjectComponentRadContextMenuChatMessageContextMenu

Implements: IAnalyticsProviderIComponentIDisposable

Inherited Members RadContextMenu.Show()RadContextMenu.Show(int, int)RadContextMenu.Show(Point)RadContextMenu.Show(Point, RadDirection)RadContextMenu.Show(Control, int, int)RadContextMenu.Show(Control, Point)RadContextMenu.Show(Control, Point, RadDirection)RadContextMenu.Show(RadItem, int, int)RadContextMenu.Show(RadItem, Point)RadContextMenu.Show(RadItem, Point, RadDirection)RadContextMenu.Show(RadItem, int, RadDirection)RadContextMenu.OnDropDownOpening(CancelEventArgs)RadContextMenu.OnDropDownClosing(CancelEventArgs)RadContextMenu.OnDropDownOpened()RadContextMenu.OnDropDownClosed()RadContextMenu.ItemsRadContextMenu.ThemeNameRadContextMenu.ImageListRadContextMenu.DropDownRadContextMenu.AnimationEnabledRadContextMenu.AnimationFramesRadContextMenu.AnimationTypeRadContextMenu.EnableAnalyticsRadContextMenu.DropDownOpeningRadContextMenu.DropDownClosingRadContextMenu.DropDownOpenedRadContextMenu.DropDownClosedComponent.Dispose()Component.GetService(Type)Component.ToString()Component.CanRaiseEventsComponent.EventsComponent.SiteComponent.ContainerComponent.DesignModeComponent.DisposedMarshalByRefObject.MemberwiseClone(bool)MarshalByRefObject.GetLifetimeService()MarshalByRefObject.InitializeLifetimeService()MarshalByRefObject.CreateObjRef(Type)...

Constructors

Initializes a new instance of the ChatMessageContextMenu class.

C#
public ChatMessageContextMenu(RadElement ownerElement)
Parameters:ownerElementRadElement

Properties

Gets the element that the context menu was opened for.

C#
public BaseChatItemElement ContextElement { get; }

Gets the message that the context menu was opened for.

C#
public ChatMessage ContextMessage { get; }

Gets the Copy menu item.

C#
public RadMenuItem CopyMenuItem { get; }

Gets the Delete menu item.

C#
public RadMenuItem DeleteMenuItem { get; }

Gets the Edit menu item.

C#
public RadMenuItem EditMenuItem { get; }

Gets the Reply menu item.

C#
public RadMenuItem ReplyMenuItem { get; }

Methods

Creates the menu items.

C#
protected virtual void CreateMenuItems()

Disposes the context menu resources.

C#
protected override void Dispose(bool disposing)
Parameters:disposingbool

Overrides: RadContextMenu.Dispose(bool)

Shows the context menu for the specified message and element.

C#
public virtual void Show(ChatMessage message, BaseChatItemElement element, Point location)
Parameters:messageChatMessage

The chat message.

elementBaseChatItemElement

The message element.

locationPoint

The screen location to show the menu.

Events

Occurs when the Copy menu item is clicked.

C#
public event EventHandler<ChatMessage> CopyClicked

Occurs when the Delete menu item is clicked.

C#
public event EventHandler<ChatMessage> DeleteClicked

Occurs when the Edit menu item is clicked.

C#
public event EventHandler<ChatMessage> EditClicked

Occurs when the Reply menu item is clicked.

C#
public event EventHandler<ChatMessage> ReplyClicked