TreeNodeStyleCollection.Remove(TreeNodeStyle) 方法

定义

TreeNodeStyle 对象中移除指定的 TreeNodeStyleCollection 对象。Removes the specified TreeNodeStyle object from the TreeNodeStyleCollection object.

public:
 void Remove(System::Web::UI::WebControls::TreeNodeStyle ^ style);
public void Remove (System.Web.UI.WebControls.TreeNodeStyle style);
member this.Remove : System.Web.UI.WebControls.TreeNodeStyle -> unit
Public Sub Remove (style As TreeNodeStyle)

参数

style
TreeNodeStyle

要移除的 TreeNodeStyleThe TreeNodeStyle to remove.

注解

使用 Remove 方法 TreeNodeStyle 从集合中移除指定的对象。Use the Remove method to remove the specified TreeNodeStyle object from the collection. 其余对象的索引将更新为连续索引。The indexes of the remaining objects are updated to be consecutive.

作为替代方法,可以使用方法移除特定索引处的节点 RemoveAtAs an alternative, you can remove a node at specific index by using the RemoveAt method. 你还可以使用方法移除集合中的每个节点 ClearYou can also remove every node in the collection by using the Clear method.

适用于

另请参阅