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 以填滿空白位置。 移動的專案的索引也會更新。

若要 StyleStyleCollection 特定索引位置的物件中移除物件,請使用 RemoveAt 方法。 您也可以 Style 使用方法來移除集合中的每個物件 Clear

適用於

另請參閱