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。
備註
整個收藏從頭到尾都被單向搜尋。