ToolStripItemCollection.IndexOf(ToolStripItem) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
检索集合中指定项的索引。
public:
int IndexOf(System::Windows::Forms::ToolStripItem ^ value);
public int IndexOf(System.Windows.Forms.ToolStripItem value);
member this.IndexOf : System.Windows.Forms.ToolStripItem -> int
Public Function IndexOf (value As ToolStripItem) As Integer
参数
- value
- ToolStripItem
在 ToolStripItem . 中查找的ToolStripItemCollection
返回
从零开始的索引值,表示在找到时ToolStripItem指定的ToolStripItemCollection位置;否则为 -1。