ListBox.IntegerCollection.CopyTo(Array, Int32) 方法

定义

将整个复制到 ListBox.IntegerCollection 数组内指定位置的现有整数数组中。

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

参数

destination
Array

要复制到的 ListBox.IntegerCollection 数组。

index
Int32

要复制到 ListBox.IntegerCollection的目标数组中的位置。

实现

例外

.NET 5 及更高版本: destinationnull

注解

CopyTo使用该方法将多个集合中的整数合并到单个数组中。 然后,可以使用此数组通过该方法填充另一个 ListBox 控件 AddRange 的内容。

适用于