Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何遍历 XtraBar 中的 DevExpress 菜单项?
我需要循环遍历 xtrabar 中的所有菜单项,如果满足某些条件,我需要在途中删除某些菜单项?
提前致谢
尝试以下操作:
foreach (DevExpress.XtraBars.BarItem item in bar.Manager.Items) { //Do sth. }