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。

備註

從頭到尾搜尋集合。

適用於

另請參閱