ContextMenu
The default context menu.
Definition
Namespace:Telerik.WinControls.RichTextEditor.UI
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
public class ContextMenu : IContextMenu, IDisposable
Inheritance: objectContextMenu
Implements:
Constructors
Initializes a new instance of the ContextMenu class.
public ContextMenu()
Properties
Gets or sets the context menu content builder.
public IContextMenuContentBuilder ContentBuilder { get; set; }
The context menu content builder.
Methods
public void Dispose()
Implements:
Hides the menu.
public void Hide()
Implements:
Raises the event.
protected virtual void OnClosed(EventArgs e)
The ContextMenuEventArgs instance containing the event data.
Raises the event.
protected virtual void OnOpened(ContextMenuPlacementEventArgs e)
The ContextMenuPlacementEventArgs instance containing the event data.
Raises the event.
protected virtual void OnShowing(ContextMenuEventArgs e)
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.
public void Show(Point location, RadRichTextBox radRichTextBox, WordInfo incorrectWordInfo)
The location to show at.
radRichTextBoxRadRichTextBoxRadRichTextBox to attach to.
incorrectWordInfoWordInfoThe word info to show suggestions for.
Implements:
Shows the context menu at specified location, relative to passed RadRichTextBox.
public void Show(Point location, RadRichTextBox radRichTextBox)
The location to show at.
radRichTextBoxRadRichTextBoxRadRichTextBox to attach to.
Implements:
Events
Occurs when context menu is Closed.
public event EventHandler Closed
Implements:
Occurs when context menu is loaded.
public event EventHandler<ContextMenuPlacementEventArgs> Opened
Implements:
Occurs before showing of context menu.
public event EventHandler<ContextMenuEventArgs> Showing