TabControl.TabPageCollection.IList.Add(Object) 方法

定義

TabPage 控制項加入集合中。

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

參數

value
Object

要加入至集合的 TabPage

傳回

Int32

插入 TabPage 的位置。

實作

例外狀況

value 不是 TabPage

valuenull

備註

這個成員是明確介面成員實作, 只有在 TabControl.TabPageCollection 執行個體轉換成 IList 介面時,才能使用這個成員。

適用於