TableRowGroupCollection.CopyTo 方法

定義

複製集合的內容並將之插入指定的陣列,從陣列的指定索引位置開始。

多載

CopyTo(Array, Int32)

複製集合的內容並將之插入指定的陣列,從陣列的指定索引位置開始。

CopyTo(TableRowGroup[], Int32)

複製集合的內容並將這些內容插入指定的 TableRowGroup 陣列,從陣列之指定的索引位置開始。

CopyTo(Array, Int32)

複製集合的內容並將之插入指定的陣列,從陣列的指定索引位置開始。

public:
 virtual void CopyTo(Array ^ array, int index);
public void CopyTo (Array array, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (array As Array, index As Integer)

參數

array
Array

集合內容所要複製到的一維陣列。 這個陣列必須使用以零起始的索引。

index
Int32

array 中以零起始的索引,用來指定開始插入所複製之集合物件的位置。

實作

例外狀況

array 包含與類型 TableRowGroup 不相容的項目時,或者若 arrayIndex 指定落在 array 範圍外的位置時引發。

arraynull 時引發。

arrayIndex 小於 0 時引發。

適用於

CopyTo(TableRowGroup[], Int32)

複製集合的內容並將這些內容插入指定的 TableRowGroup 陣列,從陣列之指定的索引位置開始。

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

參數

array
TableRowGroup[]

集合內容所要複製到的一維 TableRowGroup 陣列。 這個陣列必須使用以零起始的索引。

index
Int32

array 中以零起始的索引,用來指定開始插入所複製之集合物件的位置。

實作

例外狀況

array 包含與類型 TableRowGroup 不相容的項目時,或者若 arrayIndex 指定落在 array 範圍外的位置時引發。

arraynull 時引發。

arrayIndex 小於 0 時引發。

適用於