how to get the text of the action associated with an icontributionitem

85 views Asked by At

I have a MenuManager (instance of IMenuManager) and to this menumanager a ContributionItem is added (instance of ContributionItem). There is an action (instance of IAction) associated with this contribution item.

The problem is I could not type cast the ContributionItem to ActionContributionItem. hence I'm unable to get the menu/action text of the action associated with the menuitem.

Is there a way to get the 'Menu Text' or 'Action Text' of a ContributionItem?

0

There are 0 answers