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

适用于

另请参阅