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 方法。

適用於

另請參閱