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.
我有一个私有数组,TabPage[] tp = new TabPage[10] 如何获取所选选项卡的索引(数组索引,而不是选项卡索引)?
TabPage[] tp = new TabPage[10]
数组索引和选项卡索引之间的区别
示例:我选择了一个选项卡。数组索引可以是 1 但信息包含在 tp[8]
var SelectedArrayTabIndex = Array.IndexOf(tp, SelectedTab);