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 之以零起始的索引位置。

備註

RemoveAt使用 方法,從 物件中移除 TreeNodeStyle 位於指定之以零起始的索引位置 TreeNodeStyleCollection 的物件。 然後,移除節點之後的所有專案都會向上移動一個層級,以填滿樹狀結構中的空置位置。 移動專案的索引也會更新。

或者,您可以使用 方法來移除特定 TreeNodeStyle 物件 Remove 。 您也可以使用 Clear 方法來移除集合中的每個節點。

適用於

另請參閱