DesignerOptionService.DesignerOptionCollection.IndexOf 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
返回此集合范围内给定值的第一个匹配项的索引。
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
参数
要定位在集合中的对象。
返回
如果找到,则为整个集合中值的第一个匹配项的索引;否则,集合的下限减 1。
注解
集合从头到尾按一个方向搜索。