語言

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 方法移除集合中的每個節點。

適用於

另請參閱