DesignerActionListCollection.IndexOf(DesignerActionList) 方法

定义

确定集合中特定项的索引。Determines the index of a specific item in the collection.

public:
 int IndexOf(System::ComponentModel::Design::DesignerActionList ^ value);
public int IndexOf (System.ComponentModel.Design.DesignerActionList value);
member this.IndexOf : System.ComponentModel.Design.DesignerActionList -> int
Public Function IndexOf (value As DesignerActionList) As Integer

参数

value
DesignerActionList

要在集合中查找的 DesignerActionListThe DesignerActionList to locate in the collection.

返回

Int32

如果在内部列表中找到,则为 value 的索引;否则为 -1。The index of value if found in the internal list; otherwise, -1.

注解

类在内部 DesignerActionListCollection 使用, System.Collections.ArrayList 它包含对象的集合 DesignerActionListInternally, the DesignerActionListCollection class uses a System.Collections.ArrayList to contain its collection of DesignerActionList objects.

适用于

另请参阅