語言

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物件。

適用於

另請參閱