WinForms

Code Examples Upgrade Guide User Guide Demos Support Forums Download
  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DockContextMenuEventArgs

    Show / Hide Table of Contents

    Class DockContextMenuEventArgs

    Custom event argument class used by the DockContextMenu event.

    Inheritance
    System.Object
    System.EventArgs
    DockContextMenuEventArgs
    Inherited Members
    System.EventArgs.Empty
    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: Syncfusion.Windows.Forms.Tools
    Assembly: Syncfusion.Tools.Windows.dll
    Syntax
    public class DockContextMenuEventArgs : EventArgs
    Remarks

    The DockingManager uses the DockContextMenu event to allow users to modify the context menu displayed when a docking window's caption is right-clicked. DockContextMenuEventHandler

    Constructors

    DockContextMenuEventArgs(Control, PopupMenu)

    Creates a new instance of the DockContextMenuEventArgs class.

    Declaration
    public DockContextMenuEventArgs(Control owner, PopupMenu menu)
    Parameters
    Type Name Description
    System.Windows.Forms.Control owner

    The control displaying the menu.

    PopupMenu menu

    The menu being displayed.

    Fields

    ctrlOwner

    Declaration
    protected Control ctrlOwner
    Field Value
    Type Description
    System.Windows.Forms.Control

    mnuContext

    Declaration
    protected PopupMenu mnuContext
    Field Value
    Type Description
    PopupMenu

    Properties

    ContextMenu

    Gets / sets the context menu to be displayed.

    Declaration
    public PopupMenu ContextMenu { get; set; }
    Property Value
    Type Description
    PopupMenu

    An instance of the PopupMenu class.

    Owner

    Returns the control that is displaying the context menu.

    Declaration
    public Control Owner { get; }
    Property Value
    Type Description
    System.Windows.Forms.Control
    Back to top Generated by DocFX
    Copyright © 2001 - 2023 Syncfusion Inc. All Rights Reserved