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を挿入するコレクション内の 0 から始まるインデックス。

format
DesignerAutoFormat

コレクションに挿入する DesignerAutoFormat

例外

index が 0 未満です。

-または-

indexCount プロパティより大きい。

注釈

Insert メソッドは、特定のインデックス位置にあるコレクションにDesignerAutoFormat オブジェクトを追加します。 コレクションの末尾に 1 つの DesignerAutoFormat を追加するには、 Add メソッドを使用します。

Note

コレクションに項目を挿入すると、コレクション内の後続の項目のインデックス値が変更されます。

適用対象

こちらもご覧ください