語言

TableCellCollection.IList.Add(Object) 方法

定義

將物件加入至集合。

 virtual int System.Collections.IList.Add(System::Object ^ o) = System::Collections::IList::Add;
int IList.Add(object o);
abstract member System.Collections.IList.Add : obj -> int
override this.System.Collections.IList.Add : obj -> int
Function Add (o As Object) As Integer Implements IList.Add

參數

o
Object

要加入收藏的物件。

傳回

物件加入集合時的索引。

實作

備註

通常,你應該用這個 TableCellCollection.Add 方法來為物件添加元素 TableCellCollection 。

此 TableCellCollection.IList.Add 方法是一種明確的介面成員實作。 它只能在實 TableCellCollection 例投射到 IList 介面時使用。

適用於

另請參閱