StyleCollection::CopyTo Method (array<Style^>^, Int32)

 

Copies the elements of the StyleCollection to a one-dimensional Style array, starting at the specified index of the target array.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
void CopyTo(
	array<Style^>^ styleArray,
	int index
)

Parameters

styleArray
Type: array<System.Web.UI.WebControls::Style^>^

The Array that is the destination of the copied styles. The Array must have zero-based indexing.

index
Type: System::Int32

The zero-based index in styleArray at which copying begins.

The style elements are copied to the Array object in the same order in which they are indexed within the StyleCollection object.

.NET Framework
Available since 2.0
Return to top
Show: