TableColumnCollection.CopyTo 方法

定義

複製集合的內容並將之插入指定的陣列,從陣列的指定索引位置開始。Copies the contents of the collection and inserts them into a specified array starting at a specified index position in the array.

多載

CopyTo(Array, Int32)

複製集合的內容並將之插入指定的陣列,從陣列的指定索引位置開始。Copies the contents of the collection and inserts them into a specified array starting at a specified index position in the array.

CopyTo(TableColumn[], Int32)

複製集合的內容並將這些內容插入指定的 TableColumn 陣列,從陣列之指定的索引位置開始。Copies the contents of the collection and inserts them into a specified TableColumn array of starting at a specified index position in the array.

CopyTo(Array, Int32)

複製集合的內容並將之插入指定的陣列,從陣列的指定索引位置開始。Copies the contents of the collection and inserts them into a specified array starting at a specified index position in the array.

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

集合內容所要複製到的一維陣列。A one-dimensional array to which the collection contents will be copied. 這個陣列必須使用以零起始的索引。This array must use zero-based indexing.

index
Int32

array 中以零起始的索引,用來指定開始插入所複製之集合物件的位置。A zero-based index in array specifying the position at which to begin inserting the copied collection objects.

實作

例外狀況

array 包含與型別 TableColumn 不相容的項目時,或者若 index 指定落在 array 範圍外的位置時引發。Raised when array includes items that are not compatible with the type TableColumn, or if index specifies a position that falls outside of the bounds of array.

arraynull 時引發。Raised when array is null.

index 小於 0 時引發。Raised when index is less than 0.

適用於

CopyTo(TableColumn[], Int32)

複製集合的內容並將這些內容插入指定的 TableColumn 陣列,從陣列之指定的索引位置開始。Copies the contents of the collection and inserts them into a specified TableColumn array of starting at a specified index position in the array.

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

參數

array
TableColumn[]

集合內容所要複製到的一維 TableColumn 陣列。A one-dimensional TableColumn array to which the collection contents will be copied. 這個陣列必須使用以零起始的索引。This array must use zero-based indexing.

index
Int32

array 中以零起始的索引,用來指定開始插入所複製之集合物件的位置。A zero-based index in array specifying the position at which to begin inserting the copied collection objects.

實作

例外狀況

array 包含與型別 TableColumn 不相容的項目時,或者若 index 指定落在 array 範圍外的位置時引發。Raised when array includes items that are not compatible with the type TableColumn, or if index specifies a position that falls outside of the bounds of array.

arraynull 時引發。Raised when array is null.

index 小於 0 時引發。Raised when index is less than 0.

適用於