How could I add a separator in a PopMenu?
I have a PopMenu as below.
I want to add a separator between the menu.
Could anyone give me a .NET sample code for it?
Solved! Go to Solution.
Solved by dynamicscope. Go to Solution.
What kind of PopupMenu object type are you working with? The exact type?
For example:
System.Windows.Forms.ContextMenu menu = new ContextMenu();
menu.MenuItems.Add("-");
menu.Show(..., ...)
'Autodesk.AutoCAD.Interop.AcadPopupMenu' object has a method:
'AddSeparator(object Index)'
I was using Autodesk.AutoCAD.Customization.PopMenu.
And I got the separator.
The PopMenuItem constructor with no macro assigned is the equivalent of a separator.
Thank you for your help anyway.