語言

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

適用於

另請參閱