TreeNodeStyleCollection.Remove(TreeNodeStyle) メソッド

定義

指定した TreeNodeStyle オブジェクトを TreeNodeStyleCollection オブジェクトから削除します。

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

削除する TreeNodeStyle

注釈

Remove メソッドを使用して、指定したTreeNodeStyle オブジェクトをコレクションから削除します。 残りのオブジェクトのインデックスは、連続するように更新されます。

別の方法として、 RemoveAt メソッドを使用して、特定のインデックスにあるノードを削除することもできます。 Clear メソッドを使用して、コレクション内のすべてのノードを削除することもできます。

適用対象

こちらもご覧ください