TreeNodeStyleCollection.CopyTo(TreeNodeStyle[], Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
將物件中 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 中。 項目從目標陣列指定的索引開始複製。 接著你可以用這個陣列來存取收藏中的項目。