語言

Control.ControlCollection.IList.Add(Object) 方法

定義

關於此成員的描述,請參見 Add(Object)。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

control
Object

這個收藏品是要加入的。

傳回

新元素插入的位置,或 -1 表示該項目未入集合。

實作

備註

此成員為明確介面成員實作。 它只能在實 Control.ControlCollection 例投射到 IList 介面時使用。

適用於