ClassContextMenu
The default context menu.
Definition
Namespace:Telerik.Windows.Controls.RichTextBoxUI
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class ContextMenu : IContextMenu
Inheritance: objectContextMenu
Implements:
Constructors
ContextMenu()
Initializes a new instance of the ContextMenu class.
Declaration
public ContextMenu()
Properties
ContentBuilder
Gets or sets the context menu content builder.
Declaration
public IContextMenuContentBuilder ContentBuilder { get; set; }
Property Value
The context menu content builder.
Methods
OnClosed(EventArgs)
Raises the event.
Declaration
protected virtual void OnClosed(EventArgs e)
Parameters
e
The ContextMenuEventArgs instance containing the event data.
OnOpened(ContextMenuPlacementEventArgs)
Raises the event.
Declaration
protected virtual void OnOpened(ContextMenuPlacementEventArgs e)
Parameters
e
The ContextMenuPlacementEventArgs instance containing the event data.
OnShowing(ContextMenuEventArgs)
Raises the event.
Declaration
protected virtual void OnShowing(ContextMenuEventArgs e)
Parameters
e
The ContextMenuEventArgs instance containing the event data.
Show(Point, RadRichTextBox)
Shows the context menu at specified location, relative to passed RadRichTextBox.
Declaration
public void Show(Point location, RadRichTextBox radRichTextBox)
Parameters
location
Point
The location to show at.
radRichTextBox
RadRichTextBox to attach to.
Implements
Show(Point, RadRichTextBox, WordInfo)
Shows the context menu at specified location, relative to passed RadRichTextBox, with list of suggestions for incorrect word.
Declaration
public void Show(Point location, RadRichTextBox radRichTextBox, WordInfo incorrectWordInfo)
Parameters
location
Point
The location to show at.
radRichTextBox
RadRichTextBox to attach to.
incorrectWordInfo
The word info to show suggestions for.
Implements
Events
Closed
Occurs when context menu is Closed.
Opened
Occurs when context menu is loaded.
Declaration
public event EventHandler<ContextMenuPlacementEventArgs> Opened
Event Value
Implements
Showing
Occurs before showing of context menu.
Declaration
public event EventHandler<ContextMenuEventArgs> Showing
Event Value