StyleCollection.CopyTo Method (Style[], Int32)

Note: This method is new in the .NET Framework version 2.0.

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
)
public void CopyTo (
	Style[] styleArray, 
	int index
)
public function CopyTo (
	styleArray : Style[], 
	index : int
)

Parameters

styleArray

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

index

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.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: