menu

WinForms

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class ContextMenuItem - WindowsForms API Reference | Syncfusion

    Show / Hide Table of Contents

    Class ContextMenuItem

    The ContextMenuItem class is used by the Essential Studio menu providers - classes implementing the IContextMenuProvider interface - for providing information to the context menu command handler about the menu item that triggered the Click event. StandardMenusProvider

    Inheritance
    System.Object
    ContextMenuItem
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Syncfusion.Windows.Forms
    Assembly: Syncfusion.Shared.Base.dll
    Syntax
    public class ContextMenuItem

    Constructors

    ContextMenuItem(IContextMenuProvider, String)

    Creates an instance of the ContextMenuItem class.

    Declaration
    public ContextMenuItem(IContextMenuProvider provider, string itemtext)
    Parameters
    Type Name Description
    IContextMenuProvider provider

    A IContextMenuProvider instance representing the menu provider.

    System.String itemtext

    A System.String value representing the context menu item.

    Fields

    menuItemText

    Declaration
    protected string menuItemText
    Field Value
    Type
    System.String

    menuProvider

    Declaration
    protected IContextMenuProvider menuProvider
    Field Value
    Type
    IContextMenuProvider

    Properties

    ContextMenuItemText

    Returns the text representing the context menu item.

    Declaration
    public string ContextMenuItemText { get; }
    Property Value
    Type Description
    System.String

    A System.String value.

    ContextMenuProvider

    Returns the menu provider instance.

    Declaration
    public IContextMenuProvider ContextMenuProvider { get; }
    Property Value
    Type Description
    IContextMenuProvider

    A IContextMenuProvider instance.

    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved