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 的內容。

實作

例外狀況

arraynull

index 小於零。

array 是多維的。

-或-

來源 PathSegmentCollection 中的項目數大於從 index 到目的 array 結尾的可用空間。

適用於

另請參閱