Table.RowControlCollection.AddAt(Int32, Control) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定的 Control 物件加入集合中 Table.RowControlCollection 。 新增控制項會加入陣列中指定的索引位置。
此 API 支援此產品基礎結構,但無法直接用於程式碼之中。
public:
override void AddAt(int index, System::Web::UI::Control ^ child);
public override void AddAt(int index, System.Web.UI.Control child);
override this.AddAt : int * System.Web.UI.Control -> unit
Public Overrides Sub AddAt (index As Integer, child As Control)
參數
- index
- Int32
陣列中加入子控制項的位置。
- child
- Control
要加入 Control的物件。Table.RowControlCollection
例外狀況
控制系統不允許使用兒童控制。
備註
使用該 AddAt 方法在指定位置新增一個控制項到集合中 Table.RowControlCollection 。 控制只能是控制的一個實例 TableRow 。
要在 的末尾Table.RowControlCollection加上一個控制項Table.RowControlCollection,請使用以下Add方法。