Inheritance
System.Object
System.MarshalByRefObject
ContextMenu
Implements
System.Runtime.Remoting.Messaging.IMessageSink
System.IDisposable
Inherited Members
System.MarshalByRefObject.CreateObjRef(System.Type)
System.MarshalByRefObject.GetLifetimeService()
System.MarshalByRefObject.InitializeLifetimeService()
System.MarshalByRefObject.MemberwiseClone(System.Boolean)
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)
Assembly: NXOpenUI.dll
public class ContextMenu : TransientObject, IMessageSink, IDisposable
Constructors
Declaration
protected ContextMenu(IntPtr ptr)
Parameters
Type |
Name |
Description |
System.IntPtr |
ptr |
|
Properties
Declaration
public int NumberOfEntries { get; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
Declaration
public ContextMenuEntry AddMenuButton(MenuButton button, int index)
Parameters
Type |
Name |
Description |
MenuButton |
button |
|
System.Int32 |
index |
|
Returns
Declaration
public ContextMenuEntry AddMenuLabel(string label, int index)
Parameters
Type |
Name |
Description |
System.String |
label |
|
System.Int32 |
index |
|
Returns
Declaration
public void AddSeparator(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Declaration
public ContextMenu AddSubmenu(string label, int index)
Parameters
Type |
Name |
Description |
System.String |
label |
|
System.Int32 |
index |
|
Returns
Declaration
protected override void FreeResource()
Overrides
Declaration
public ContextMenuEntry GetEntry(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Declaration
public ContextMenuEntry GetEntryWithName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Declaration
public int GetIndexOfEntry(ContextMenuEntry entry)
Parameters
Returns
Type |
Description |
System.Int32 |
|
Declaration
public ContextMenu GetSubmenu(int index)
Parameters
Type |
Name |
Description |
System.Int32 |
index |
|
Returns
Declaration
public bool HasEntryWithName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public void HideEntry(ContextMenuEntry entry)
Parameters
Declaration
public void MoveEntry(ContextMenuEntry entry, int index)
Parameters
Declaration
public void SetDefaultEntry(ContextMenuEntry entry)
Parameters
Implements
System.Runtime.Remoting.Messaging.IMessageSink
System.IDisposable