I am trying to iterate the a specific ribbon group and not the tools, can you give me an example. Below is an error cant find key, can you assisnt me
//foreach (var toolbarManagerItem in ultraToolbarsManager1.Tools["ribbonGroupReport"].Key)
//{
// this.ultraToolbarsManager1.Tools[toolbarManagerItem].SharedProps.Enabled = reportManagerStatus;
//}
Keith,
If you know the key of the RibbonGroup then you can use it to specify the RibbonGroup; something like this:
ultraToolbarsManager1.Ribbon.Tabs[
"Cinta1"].Groups["ribbonGroup2"].Caption = "Found Group";
I have attached a simple sample application that demonstrates this. I hope it helps.
I am trying to iterate through all the items within that group. this is not working, i tried multiple things.
foreach (var items in ultraToolbarsManager1.Ribbon.Tabs[0].Groups["ribbonGroupExport"].ParentCollection)
{ Console.WriteLine(items.ToString()); }
I have attached a revised version of the sample that I attached earlier. In this version ribbonGroup2 has three FontListTools added to it. When you click the button the Tools collection of ribbonGroup2 is iterated through and when I find the tool I am looking for I set the text of it. I hope this helps you to achieve what you want.
thanks that was just what i needed :)
best regards
Cloud