How to add horizontal separator in contextnenu?

How to add horizontal separator in contextnenu?

Anonymous
Not applicable
667 Views
2 Replies
Message 1 of 3

How to add horizontal separator in contextnenu?

Anonymous
Not applicable

try these,but invalid.

 Autodesk.AutoCAD.Windows.MenuItem separator = new Autodesk.AutoCAD.Windows.MenuItem("-");

or Autodesk.AutoCAD.Windows.MenuItem separator = new Autodesk.AutoCAD.Windows.MenuItem("--");

0 Likes
Accepted solutions (1)
668 Views
2 Replies
Replies (2)
Message 2 of 3

kerry_w_brown
Advisor
Advisor
Accepted solution

 

Perhaps try something like :

m_appMenu.MenuItems.Add(new MenuItem(""));    // separator

Regards.

 


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
Message 3 of 3

Anonymous
Not applicable

@kerry_w_brown you are right. thank you!

0 Likes