StyleCollection.Insert(Int32, Style) 方法

定义

将指定 Style 对象插入 StyleCollection 指定索引位置。

public:
 void Insert(int index, System::Web::UI::WebControls::Style ^ style);
public void Insert(int index, System.Web.UI.WebControls.Style style);
member this.Insert : int * System.Web.UI.WebControls.Style -> unit
Public Sub Insert (index As Integer, style As Style)

参数

index
Int32

要插入对象的从零开始的 Style 索引位置。

style
Style

Style 插入到集合中的对象。

注解

使用该方法将 Insert 指定 Style 对象插入到 StyleCollection 指定索引位置的对象中。

若要在对象末尾Style添加StyleCollection对象,请使用Add该方法。

适用于

另请参阅