Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
60
How to retrieve tool instance(s) from its key ?
posted

I would like to retrieve a tool instance from its key.

My tool is in a group in a ribbon tab. From key I get root tool by I'm not able to retrieve its instance group.

Thanks.

 

  • 71886
    Suggested Answer
    Offline posted

    Hello poppychou,

    I am not sure that I entirely understand your requirement. If you want to retrieve a tool by it's key and the group it is in you could do that by using the following code sample as a possible approach:

    ultraToolbarsManager1.Ribbon.Tabs[0].Groups[0].Tools["PopupMenuTool10"];

    ultraToolbarsManager1.Ribbon.Tabs[0].Groups[0].Tools["PopupMenuTool10"].OwningRibbonGroup;

    Feel free to let me know if I misunderstood you or if you need any additional assistance.