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 陣列中。 專案會從目標陣列的指定索引開始複製。 然後,您可以使用 陣列來存取集合中的專案。

適用於

另請參閱