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

注意

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

適用対象

こちらもご覧ください