語言

PathSegmentCollection.CopyTo(PathSegment[], Int32) 方法

定義

將整個 PathSegmentCollection 資料複製到一維 PathSegment 陣列,從目標陣列指定的索引開始。

public:
 virtual void CopyTo(cli::array <System::Windows::Media::PathSegment ^> ^ array, int index);
public void CopyTo(System.Windows.Media.PathSegment[] array, int index);
abstract member CopyTo : System.Windows.Media.PathSegment[] * int -> unit
override this.CopyTo : System.Windows.Media.PathSegment[] * int -> unit
Public Sub CopyTo (array As PathSegment(), index As Integer)

參數

array
PathSegment[]

集合項目要複製到的陣列。

index
Int32

從哪裡開始複製 內容array的索引PathSegmentCollection。

實作

例外狀況

array 是 null。

index 小於零。

array 是多維的。

-或-

來源 PathSegmentCollection 中的項目數量大於從 index 目的地 array到末端的可用空間。

適用於

另請參閱