TreeNodeStyleCollection.RemoveAt(Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
從 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 方法來移除集合中的每個節點。
適用於
另請參閱
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應