可以参考以下的代码,修改一下应该可以遍历所有你想要的按钮
//Form
ApplyLanguageInfo(this);
//Class
public static void ApplyLanguageInfo(Form frmForm)
{
var sonControls = frmForm.Controls;
foreach (Control control in sonControls)
{
if (control.GetType().Name == " C1StatusBar")
{
var objControls = ((C1.Win.C1Ribbon.C1StatusBar)control).RightPaneItems;
foreach (C1.Win.C1Ribbon.RibbonLabel item in objControls)
{
//item.Text
//item.Name
}
}
}
} |