Enumerate all items in ribbon

Started by Nikolay, February 05, 2011, 08:15:45 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Nikolay

How do I programmatically enumerate all commands/items/elements in the ribbon?

I mean, with CommandBars/UIObjects it was quite easy to do this.
But how do I do the same thing with the ribbon?

The only way I figured out is the Active Accessibility.
Maybe there is an easier approach?

What I want to do is to write an addin, which can be told to search the ribbon for a command by command name, if it's there, then highlight it, and if and if it's not there, then add it :)