DesignerOptionService.DesignerOptionCollection.IndexOf(DesignerOptionService+DesignerOptionCollection) 方法

定义

返回在此集合范围内给定值的第一个匹配项的索引。Returns the index of the first occurrence of a given value in a range of this collection.

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

参数

value
DesignerOptionService.DesignerOptionCollection

要在集合中定位的对象。The object to locate in the collection.

返回

Int32

如果在整个集合中找到匹配项,则为第一个匹配项的索引;否则为该集合的下限减 1。The index of the first occurrence of value within the entire collection, if found; otherwise, the lower bound of the collection minus 1.

注解

从一开始到末尾搜索集合。The collection is searched, in one direction, from beginning to end.

适用于

另请参阅