StyleCollection.Remove(Style) メソッド

定義

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

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

パラメーター

style
Style

コレクションから削除する Style オブジェクト。

注釈

Remove メソッドを使用して、指定したStyle オブジェクトをStyleCollection オブジェクトから削除します。 その後、 Style オブジェクトに続くすべての項目が、空いている位置に入るために上に移動されます。 移動された項目のインデックスも更新されます。

特定のインデックス位置にあるStyle オブジェクトからStyleCollection オブジェクトを削除するには、RemoveAt メソッドを使用します。 Style メソッドを使用して、コレクション内のすべてのClear オブジェクトを削除することもできます。

適用対象

こちらもご覧ください