Nevron .NET Vision
Nevron.UI.WinForm.Controls Namespace / NLightUIElement Class / ContextMenu Property


In This Topic
    ContextMenu Property (NLightUIElement)
    In This Topic
    Gets/sets the NContextMenu instance to be displayed when the user has right-clicked on the element.
    Syntax
    'Declaration
     
    
    <System.Xml.Serialization.XmlIgnoreAttribute()>
    <System.ComponentModel.DefaultValueAttribute("")>
    <System.ComponentModel.DescriptionAttribute("Gets/sets the NContextMenu instance to be displayed when the user right-clicks on the element.")>
    <System.ComponentModel.TypeConverterAttribute(System.ComponentModel.ReferenceConverter)>
    Public Property ContextMenu As NContextMenu
    'Usage
     
    
    Dim instance As NLightUIElement
    Dim value As NContextMenu
     
    instance.ContextMenu = value
     
    value = instance.ContextMenu
    [System.Xml.Serialization.XmlIgnore()]
    [System.ComponentModel.DefaultValue("")]
    [System.ComponentModel.Description("Gets/sets the NContextMenu instance to be displayed when the user right-clicks on the element.")]
    [System.ComponentModel.TypeConverter(System.ComponentModel.ReferenceConverter)]
    public NContextMenu ContextMenu {get; set;}
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also