且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何通过传递字符串查找C#菜单项

更新时间:2023-02-12 15:28:05

此问题已得到回答 ^ ].请仅在一个论坛中发布问题.
This question has already been answered here[^]. Please post questions in one forum only.


您可以遍历所有项目(如有必要,还可以子项目),将Text属性与您的文本进行比较.
You may iterate over all items (and sub items, if necessery), comparing the Text property with your text.