语言

TreeNodeStyleCollection.CopyTo(TreeNodeStyle[], Int32) 方法

定义

从 TreeNodeStyleCollection 对象中的所有项复制到兼容的一维对象数组 TreeNodeStyle ,从目标数组中的指定索引处开始。

public:
 void CopyTo(cli::array <System::Web::UI::WebControls::TreeNodeStyle ^> ^ styleArray, int index);
public void CopyTo(System.Web.UI.WebControls.TreeNodeStyle[] styleArray, int index);
override this.CopyTo : System.Web.UI.WebControls.TreeNodeStyle[] * int -> unit
Public Sub CopyTo (styleArray As TreeNodeStyle(), index As Integer)

参数

styleArray
TreeNodeStyle[]

从零开始的对象的数组 TreeNodeStyle ,从中接收复制的 TreeNodeStyleCollection项。

index
Int32

目标数组中开始接收复制内容的位置。

注解

CopyTo使用该方法将对象的内容TreeNodeStyleCollection复制到指定的从零开始的对象TreeNodeStyle数组中。 从目标数组的指定索引处开始复制项。 然后,可以使用数组访问集合中的项。

适用于

另请参阅