語言

DesignerAutoFormatCollection.Insert(Int32, DesignerAutoFormat) 方法

定義

在指定的索引處插入物件 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 插入收藏。

例外狀況

index 小於零。

-或-

index大於屬性。Count

備註

此 Insert 方法會在 DesignerAutoFormat 特定索引位置將物件加入集合。 若要在集合末端新增單 DesignerAutoFormat 字,請使用此 Add 方法。

Note

當你將項目插入集合時,該集合中後續項目的索引值會改變。

適用於

另請參閱