TreeNodeStyleCollection.RemoveAt(Int32) メソッド

定義

指定したインデックス位置にある TreeNodeStyle オブジェクトを TreeNodeStyleCollection オブジェクトから削除します。

public:
 void RemoveAt(int index);
public void RemoveAt(int index);
member this.RemoveAt : int -> unit
Public Sub RemoveAt (index As Integer)

パラメーター

index
Int32

削除する TreeNodeStyle の 0 から始まるインデックス位置。

注釈

RemoveAt メソッドを使用して、指定した 0 から始まるインデックス位置にあるTreeNodeStyle オブジェクトをTreeNodeStyleCollection オブジェクトから削除します。 削除されたノードの後にあるすべての項目は、ツリー構造の空いている位置を埋めるために 1 レベル上に移動されます。 移動された項目のインデックスも更新されます。

別の方法として、TreeNodeStyle メソッドを使用して特定のRemove オブジェクトを削除することもできます。 Clear メソッドを使用して、コレクション内のすべてのノードを削除することもできます。

適用対象

こちらもご覧ください