Share via


TreeNodeStyleCollection.Insert(Int32, TreeNodeStyle) 方法

定義

將指定的 TreeNodeStyle 物件插入 TreeNodeStyleCollection 物件的指定索引位置。

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

參數

index
Int32

要插入 TreeNodeStyle 之以零起始的索引位置。

style
TreeNodeStyle

要插入的 TreeNodeStyle

備註

Insert使用 方法,將指定的 TreeNodeStyle 物件插入物件中的 TreeNodeStyleCollection 指定以零起始的索引處。

或者,您可以使用 方法,將 物件附加 TreeNodeStyle 至 結尾 TreeNodeStyleCollectionAdd

適用於

另請參閱