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对象。

适用于

另请参阅