skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder Design System Kit
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class ContextMenu

The default context menu.

Inheritance
System.Object
ContextMenu
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Telerik.WinControls.RichTextEditor.UI
Assembly: Telerik.WinControls.RichTextEditor.dll

Syntax

public class ContextMenu : IContextMenu, IDisposable

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
IContextMenuContentBuilder

The context menu content builder.

Methods

Dispose()

Declaration
public void Dispose()
Implements
System.IDisposable.Dispose()

Hide()

Hides the menu.

Declaration
public void Hide()
Implements
IContextMenu.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
Point location

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
public void Show(Point location, RadRichTextBox radRichTextBox, WordInfo incorrectWordInfo)
Parameters
Point location

The location to show at.

RadRichTextBox radRichTextBox

RadRichTextBox to attach to.

WordInfo incorrectWordInfo

The word info to show suggestions for.

Implements
IContextMenu.Show(Point, RadRichTextBox, WordInfo)

Events

Closed

Occurs when context menu is Closed.

Declaration
public event EventHandler Closed
Event Type
System.EventHandler

Implements
IContextMenu.Closed

Opened

Occurs when context menu is loaded.

Declaration
public event EventHandler<ContextMenuPlacementEventArgs> Opened
Event Type
System.EventHandler<ContextMenuPlacementEventArgs>

Implements
IContextMenu.Opened

Showing

Occurs before showing of context menu.

Declaration
public event EventHandler<ContextMenuEventArgs> Showing
Event Type
System.EventHandler<ContextMenuEventArgs>

Extension Methods

SvgExtentions.Traverse<T>(T, Func<T, IEnumerable<T>>)
SvgExtentions.TraverseDepthFirst<T>(T, Func<T, IEnumerable<T>>)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Install Now
  • Demos
  • Step-by-Step Tutorial
  • Sample Applications
  • SDK Samples
  • Visual Studio Extensions
Support Resources
  • Code Library
  • Knowledge Base
  • Videos
Community
  • Forums
  • Blogs
  • Feedback Portal
  • Document Processing Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.