VisualCollection.CopyTo Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Copies the current collection into the passed array.
Overloads
CopyTo(Array, Int32) |
Copies the items in the collection to an array, starting at a specific array index. |
CopyTo(Visual[], Int32) |
Copies the current collection into the passed Visual array. |
CopyTo(Array, Int32)
Copies the items in the collection to an array, starting at a specific array index.
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)
Parameters
- array
- Array
The one-dimensional Array that is the destination of the elements that are copied from the VisualCollection.
- index
- Int32
The zero-based index in array
at which copying begins.
Implements
Applies to
CopyTo(Visual[], Int32)
Copies the current collection into the passed Visual array.
public:
void CopyTo(cli::array <System::Windows::Media::Visual ^> ^ array, int index);
public void CopyTo (System.Windows.Media.Visual[] array, int index);
member this.CopyTo : System.Windows.Media.Visual[] * int -> unit
Public Sub CopyTo (array As Visual(), index As Integer)
Parameters
- index
- Int32
The index to start copying from within array
.