loop with component RibbonButton

Nov 1, 2013 at 6:40 PM
Hello,

I'm using the library ribbon and would make a loop to access the property of the components enable RibbonButton.

How could I do this?

Could someone help me?

From already thank ...
Nov 26, 2013 at 7:18 AM
Edited Nov 26, 2013 at 7:24 AM
foreach (RibbonTab tab in ribbon1.Tabs)
{
    foreach (RibbonPanel panel in tab.Panels)
    {
        foreach (RibbonItem item in panel.Items)
        {
            MessageBox.Show(string.Format("{0}, Text: {1}", item.GetType().ToString(), item.Text));
        }
    }
}