TabControl.TabPageCollection.Insert 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定的索引處插入一個分頁頁。
多載
| 名稱 | Description |
|---|---|
| Insert(Int32, String, String, String) |
建立一個包含指定鍵、文字與圖片的分頁頁,並將其插入指定的索引中。 |
| Insert(Int32, String, String) |
建立一個新的分頁頁,包含指定的鍵和文字,並將其插入指定的索引中。 |
| Insert(Int32, String, String, Int32) |
建立一個新的分頁頁,包含指定的鍵、文字和圖片,並將其插入指定的索引中。 |
| Insert(Int32, String) |
建立一個新的分頁頁,包含指定的文字,並將其插入指定的索引中。 |
| Insert(Int32, TabPage) |
在指定的索引中插入現有的分頁頁。 |
Insert(Int32, String, String, String)
建立一個包含指定鍵、文字與圖片的分頁頁,並將其插入指定的索引中。
public:
void Insert(int index, System::String ^ key, System::String ^ text, System::String ^ imageKey);
public void Insert(int index, string key, string text, string imageKey);
public void Insert(int index, string? key, string? text, string imageKey);
member this.Insert : int * string * string * string -> unit
Public Sub Insert (index As Integer, key As String, text As String, imageKey As String)
參數
- index
- Int32
插入分頁頁面的零基礎索引位置。
- key
- String
分頁頁的名稱。
- text
- String
文字要顯示在分頁頁上。
- imageKey
- String
圖片的鑰匙要顯示在分頁頁上。
備註
該Name性質對應於 中 a 的TabPageTabControl.TabPageCollection鍵。
此 Insert 方法允許您在指定位置建立並插入分頁頁面。 若要新增分頁頁面而不指定集合中特定位置,請使用該 Add 方法。 如果你想在集合中加入一個項目陣列,可以使用這個 AddRange 方法。
參數imageKey指的是屬性中的ImageListTabControl影像。
適用於
Insert(Int32, String, String)
建立一個新的分頁頁,包含指定的鍵和文字,並將其插入指定的索引中。
public:
void Insert(int index, System::String ^ key, System::String ^ text);
public void Insert(int index, string key, string text);
public void Insert(int index, string? key, string? text);
member this.Insert : int * string * string -> unit
Public Sub Insert (index As Integer, key As String, text As String)
參數
- index
- Int32
插入分頁頁面的零基礎索引位置。
- key
- String
分頁頁的名稱。
- text
- String
文字要顯示在分頁頁上。
備註
該Name性質對應於 中 a 的TabPageTabControl.TabPageCollection鍵。
此 Insert 方法允許您在指定位置建立並插入分頁頁面。 若要新增分頁頁面而不指定集合中特定位置,請使用該 Add 方法。 如果你想在集合中加入一個項目陣列,可以使用這個 AddRange 方法。
適用於
Insert(Int32, String, String, Int32)
建立一個新的分頁頁,包含指定的鍵、文字和圖片,並將其插入指定的索引中。
public:
void Insert(int index, System::String ^ key, System::String ^ text, int imageIndex);
public void Insert(int index, string key, string text, int imageIndex);
public void Insert(int index, string? key, string? text, int imageIndex);
member this.Insert : int * string * string * int -> unit
Public Sub Insert (index As Integer, key As String, text As String, imageIndex As Integer)
參數
- index
- Int32
插入分頁頁面的零基礎索引位置。
- key
- String
分頁頁的名稱。
- text
- String
文字要顯示在分頁頁上。
- imageIndex
- Int32
影像的零基索引,要顯示在分頁頁面上。
備註
該Name性質對應於 中 a 的TabPageTabControl.TabPageCollection鍵。
此 Insert 方法允許您在指定位置建立並插入分頁頁面。 若要新增分頁頁面而不指定集合中特定位置,請使用該 Add 方法。 如果你想在集合中加入一個項目陣列,可以使用這個 AddRange 方法。
參數imageIndex指的是屬性中的ImageListTabControl影像。
適用於
Insert(Int32, String)
建立一個新的分頁頁,包含指定的文字,並將其插入指定的索引中。
public:
void Insert(int index, System::String ^ text);
public void Insert(int index, string text);
public void Insert(int index, string? text);
member this.Insert : int * string -> unit
Public Sub Insert (index As Integer, text As String)
參數
- index
- Int32
插入分頁頁面的零基礎索引位置。
- text
- String
要在分頁頁顯示的文字。
備註
這個 Insert 方法允許你建立新的分頁頁面,並在指定位置插入。 若要新增分頁頁面而不指定集合中特定位置,請使用該 Add 方法。 如果你想在集合中加入一個項目陣列,可以使用這個 AddRange 方法。
適用於
Insert(Int32, TabPage)
在指定的索引中插入現有的分頁頁。
public:
void Insert(int index, System::Windows::Forms::TabPage ^ tabPage);
public void Insert(int index, System.Windows.Forms.TabPage tabPage);
member this.Insert : int * System.Windows.Forms.TabPage -> unit
Public Sub Insert (index As Integer, tabPage As TabPage)
參數
- index
- Int32
插入分頁頁面的零基礎索引位置。
備註
此 Insert 方法允許你在指定位置插入分頁頁面。 若要新增分頁頁面而不指定集合中特定位置,請使用該 Add 方法。 如果你想在集合中加入一個項目陣列,可以使用這個 AddRange 方法。