Spread Windows Forms 17
GrapeCity.Win.PluginInputMan Assembly / GrapeCity.Win.Spread.InputMan.CellType Namespace / EditBase Class / ContextMenu Property


In This Topic
    ContextMenu Property (EditBase)
    In This Topic
    Gets or sets the shortcut menu associated with the control.
    Syntax
    'Declaration
     
    
    Public Overrides Property ContextMenu As ContextMenu
    'Usage
     
    
    Dim instance As EditBase
    Dim value As ContextMenu
     
    instance.ContextMenu = value
     
    value = instance.ContextMenu
    public override ContextMenu ContextMenu {get; set;}

    Property Value

    A System.Windows.Forms.ContextMenu that represents the shortcut menu associated with the control.
    The default is a null reference (Nothing in Visual Basic).
    Remarks
    Use shortcut menus to give context-specific menu options to users when they right-click on the control.

    Notes to Inheritors:

    When overriding the ContextMenu property in a derived class, use the base class's ContextMenu property to extend the base implementation; otherwise, you must provide the implementation. You are not required to override both the get and set accessors of the ContextMenu property; you can override only one if needed.

    See Also