Class ContextMenu
The default context menu.
Inheritance
Namespace: Telerik.Windows.Controls.RichTextBoxUI
Assembly: Telerik.Windows.Controls.RichTextBox.dll
Syntax
public class ContextMenu : Object, IContextMenu
Constructors
ContextMenu()
Properties
ContentBuilder
Gets or sets the context menu content builder.
Declaration
public IContextMenuContentBuilder ContentBuilder { get; set; }
Property Value
IContext The context menu content builder. |
Methods
Hide()
OnClosed(EventArgs)
Raises the Closed event.
Declaration
protected virtual void OnClosed(EventArgs e)
Parameters
System. The Context |
OnOpened(ContextMenuPlacementEventArgs)
Raises the Opened event.
Declaration
protected virtual void OnOpened(ContextMenuPlacementEventArgs e)
Parameters
Context The Context |
OnShowing(ContextMenuEventArgs)
Raises the Showing event.
Declaration
protected virtual void OnShowing(ContextMenuEventArgs e)
Parameters
Context The Context |
Show(Point, RadRichTextBox)
Shows the context menu at specified location, relative to passed RadRichTextBox.
Declaration
public void Show(Point location, RadRichTextBox radRichTextBox)
Parameters
System. The location to show at. |
Rad 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
System. The location to show at. |
Rad RadRichTextBox to attach to. |
Word The word info to show suggestions for. |
Implements
Events
Closed
Occurs when context menu is Closed.
Declaration
public event EventHandler Closed
Event Type
System.
|
Implements
Opened
Occurs when context menu is loaded.
Declaration
public event EventHandler<ContextMenuPlacementEventArgs> Opened
Event Type
System.
|
Implements
Showing
Occurs before showing of context menu.
Declaration
public event EventHandler<ContextMenuEventArgs> Showing
Event Type
System.
|