remove icons from nDiagramCommandBarsManager


Author
Message
Cristian Cojocaru
Cristian Cojocaru
Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)Forum Newbie (6 reputation)
Group: Forum Members
Posts: 14, Visits: 24
Like subject says I'm trying to remove some commands I don't use from the DiagramCommandBarsManager.
I searched about it and found this:
http://support.nevron.com/KB/a48/replace-override-the-commands-in-command-bars-manager.aspx

I tried to remove the PDF Export... icon + command from the toolbar and from the "File" context menu but it didn't work, here is my code:

            NPdfExportCommand newD = (NPdfExportCommand)nDiagramCommandBarsManager1.Commander.Commands.GetCommandFromId((int)DiagramCommand.PdfExport);
            int index = nDiagramCommandBarsManager1.Commander.Commands.IndexOf(newD);
            nDiagramCommandBarsManager1.Commander.Commands.RemoveAt(index);
            nDiagramCommandBarsManager1.Refresh();


It disables the command so when I click the icon it doesn't show me anything... but I would like to remove the icon so it doesn't appear.



GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search