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 该方法删除集合中的每个节点。