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

The default context menu.

Definition

Namespace:Telerik.WinControls.RichTextEditor.UI

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
public class ContextMenu : IContextMenu, IDisposable

Inheritance: objectContextMenu

Implements: IContextMenuIDisposable

Constructors

Initializes a new instance of the ContextMenu class.

C#
public ContextMenu()

Properties

Gets or sets the context menu content builder.

C#
public IContextMenuContentBuilder ContentBuilder { get; set; }
Property Value:

The context menu content builder.

Methods

C#
public void Dispose()

Implements: IDisposable.Dispose()

Hides the menu.

C#
public void Hide()

Implements: IContextMenu.Hide()

Raises the event.

C#
protected virtual void OnClosed(EventArgs e)
Parameters:eEventArgs

The ContextMenuEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnOpened(ContextMenuPlacementEventArgs e)
Parameters:eContextMenuPlacementEventArgs

The ContextMenuPlacementEventArgs instance containing the event data.

Raises the event.

C#
protected virtual void OnShowing(ContextMenuEventArgs e)
Parameters:eContextMenuEventArgs

The ContextMenuEventArgs instance containing the event data.

Shows the context menu at specified location, relative to passed RadRichTextBox, with list of suggestions for incorrect word.

C#
public void Show(Point location, RadRichTextBox radRichTextBox, WordInfo incorrectWordInfo)
Parameters:locationPoint

The location to show at.

radRichTextBoxRadRichTextBox

RadRichTextBox to attach to.

incorrectWordInfoWordInfo

The word info to show suggestions for.

Implements: IContextMenu.Show(Point, RadRichTextBox, WordInfo)

Shows the context menu at specified location, relative to passed RadRichTextBox.

C#
public void Show(Point location, RadRichTextBox radRichTextBox)
Parameters:locationPoint

The location to show at.

radRichTextBoxRadRichTextBox

RadRichTextBox to attach to.

Implements: IContextMenu.Show(Point, RadRichTextBox)

Events

Occurs when context menu is Closed.

C#
public event EventHandler Closed

Implements: IContextMenu.Closed

Occurs when context menu is loaded.

C#
public event EventHandler<ContextMenuPlacementEventArgs> Opened

Implements: IContextMenu.Opened

Occurs before showing of context menu.

C#
public event EventHandler<ContextMenuEventArgs> Showing