ListBox.SelectedObjectCollection.CopyTo(Array, Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
将整个集合复制到数组内指定位置的现有数组中。
public:
virtual void CopyTo(Array ^ dest, int index);
public:
virtual void CopyTo(Array ^ destination, int index);
public void CopyTo(Array dest, int index);
public void CopyTo(Array destination, int index);
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
abstract member CopyTo : Array * int -> unit
override this.CopyTo : Array * int -> unit
Public Sub CopyTo (dest As Array, index As Integer)
Public Sub CopyTo (destination As Array, index As Integer)
参数
- destdestination
- Array
要将集合内容复制到的数组。
- index
- Int32
要将项从集合复制到的目标数组中的位置。
实现
注解
可以使用此方法将多个集合中的选定项合并到单个数组中。