DesignerAutoFormatCollection.Insert(Int32, DesignerAutoFormat) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
在指定的索引處插入物件 DesignerAutoFormat 。
public:
void Insert(int index, System::Web::UI::Design::DesignerAutoFormat ^ format);
public void Insert(int index, System.Web.UI.Design.DesignerAutoFormat format);
member this.Insert : int * System.Web.UI.Design.DesignerAutoFormat -> unit
Public Sub Insert (index As Integer, format As DesignerAutoFormat)
參數
- index
- Int32
集合中用於插入 format的零基索引。
- format
- DesignerAutoFormat
將 DesignerAutoFormat 插入收藏。
例外狀況
備註
此 Insert 方法會在 DesignerAutoFormat 特定索引位置將物件加入集合。 若要在集合末端新增單 DesignerAutoFormat 字,請使用此 Add 方法。
Note
當你將項目插入集合時,該集合中後續項目的索引值會改變。