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 削除することもできます。

適用対象

こちらもご覧ください