语言

DesignerOptionService.DesignerOptionCollection.IndexOf 方法

定义

返回此集合范围内给定值的第一个匹配项的索引。

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

要定位在集合中的对象。

返回

如果找到,则为整个集合中值的第一个匹配项的索引;否则,集合的下限减 1。

注解

集合从头到尾按一个方向搜索。

适用于

另请参阅