TableCellCollection.IList.IndexOf(Object) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
搜尋指定的物件,並回傳集合中首次出現的零為基礎索引。
virtual int System.Collections.IList.IndexOf(System::Object ^ o) = System::Collections::IList::IndexOf;
int IList.IndexOf(object o);
abstract member System.Collections.IList.IndexOf : obj -> int
override this.System.Collections.IList.IndexOf : obj -> int
Function IndexOf (o As Object) As Integer Implements IList.IndexOf
參數
- o
- Object
在收藏中尋找的物件。
傳回
集合中物件首次出現的零基索引;否則,-1 物件不在集合中。
實作
備註
通常,你應該用這個 GetCellIndex 方法來取得物件中 TableCellCollection 元素的索引。
此 IList.IndexOf 方法是一種明確的介面成員實作。 它只能在實 TableCellCollection 例投射到 IList 介面時使用。