Class ContextMenu
The default context menu.
Inheritance
Namespace: Telerik.Windows.Controls.RichTextBoxUI
Assembly: Telerik.Windows.Controls.RichTextBoxUI.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
IContextMenuContentBuilder
The context menu content builder. |
Methods
Hide()
OnClosed(EventArgs)
Raises the Closed event.
Declaration
protected virtual void OnClosed(EventArgs e)
Parameters
System.EventArgs
e
The ContextMenuEventArgs instance containing the event data. |
OnOpened(ContextMenuPlacementEventArgs)
Raises the Opened event.
Declaration
protected virtual void OnOpened(ContextMenuPlacementEventArgs e)
Parameters
ContextMenuPlacementEventArgs
e
The ContextMenuPlacementEventArgs instance containing the event data. |
OnShowing(ContextMenuEventArgs)
Raises the Showing event.
Declaration
protected virtual void OnShowing(ContextMenuEventArgs e)
Parameters
ContextMenuEventArgs
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
System.Windows.Point
location
The location to show at. |
RadRichTextBox
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
System.Windows.Point
location
The location to show at. |
RadRichTextBox
radRichTextBox
RadRichTextBox to attach to. |
WordInfo
incorrectWordInfo
The word info to show suggestions for. |
Implements
Events
Closed
Occurs when context menu is Closed.
Declaration
public event EventHandler Closed
Event Type
System.EventHandler
|
Implements
Opened
Occurs when context menu is loaded.
Declaration
public event EventHandler<ContextMenuPlacementEventArgs> Opened
Event Type
System.EventHandler<ContextMenuPlacementEventArgs>
|
Implements
Showing
Occurs before showing of context menu.
Declaration
public event EventHandler<ContextMenuEventArgs> Showing
Event Type
System.EventHandler<ContextMenuEventArgs>
|