Class
ContextMenu

The default context menu.

Definition

Namespace:Telerik.Windows.Controls.RichTextBoxUI

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class ContextMenu : IContextMenu

Inheritance: objectContextMenu

Implements: IContextMenu

Constructors

ContextMenu()

Initializes a new instance of the ContextMenu class.

Declaration

cs-api-definition
public ContextMenu()

Properties

ContentBuilder

Gets or sets the context menu content builder.

Declaration

cs-api-definition
public IContextMenuContentBuilder ContentBuilder { get; set; }

Property Value

IContextMenuContentBuilder

The context menu content builder.

Methods

Hide()

Hides the menu.

Declaration

cs-api-definition
public void Hide()

Implements IContextMenu.Hide()

OnClosed(EventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnClosed(EventArgs e)

Parameters

e

EventArgs

The ContextMenuEventArgs instance containing the event data.

OnOpened(ContextMenuPlacementEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnOpened(ContextMenuPlacementEventArgs e)

Parameters

e

ContextMenuPlacementEventArgs

The ContextMenuPlacementEventArgs instance containing the event data.

OnShowing(ContextMenuEventArgs)

Raises the event.

Declaration

cs-api-definition
protected virtual void OnShowing(ContextMenuEventArgs e)

Parameters

e

ContextMenuEventArgs

The ContextMenuEventArgs instance containing the event data.

Show(Point, RadRichTextBox)

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

Declaration

cs-api-definition
public void Show(Point location, RadRichTextBox radRichTextBox)

Parameters

location

Point

The location to show at.

radRichTextBox

RadRichTextBox

RadRichTextBox to attach to.

Implements IContextMenu.Show(Point, RadRichTextBox)

Show(Point, RadRichTextBox, WordInfo)

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

Declaration

cs-api-definition
public void Show(Point location, RadRichTextBox radRichTextBox, WordInfo incorrectWordInfo)

Parameters

location

Point

The location to show at.

radRichTextBox

RadRichTextBox

RadRichTextBox to attach to.

incorrectWordInfo

WordInfo

The word info to show suggestions for.

Implements IContextMenu.Show(Point, RadRichTextBox, WordInfo)

Events

Closed

Occurs when context menu is Closed.

Declaration

cs-api-definition
public event EventHandler Closed

Event Value

EventHandler

Implements IContextMenu.Closed

Opened

Occurs when context menu is loaded.

Declaration

cs-api-definition
public event EventHandler<ContextMenuPlacementEventArgs> Opened

Event Value

EventHandler<ContextMenuPlacementEventArgs>

Implements IContextMenu.Opened

Showing

Occurs before showing of context menu.

Declaration

cs-api-definition
public event EventHandler<ContextMenuEventArgs> Showing

Event Value

EventHandler<ContextMenuEventArgs>