TableRow.CellControlCollection.AddAt(Int32, Control) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將指定的 Control 物件加入集合中 TableRow.CellControlCollection 。 新增控制項會加入陣列中指定的索引位置。
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
例外狀況
備註
新增的控制項只能 TableCell 是一個物件;否則,會拋出 an ArgumentException 。