편집

다음을 통해 공유


StyleCollection.CopyTo(Style[], Int32) Method

Definition

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

public:
 void CopyTo(cli::array <System::Web::UI::WebControls::Style ^> ^ styleArray, int index);
public void CopyTo (System.Web.UI.WebControls.Style[] styleArray, int index);
override this.CopyTo : System.Web.UI.WebControls.Style[] * int -> unit
Public Sub CopyTo (styleArray As Style(), index As Integer)

Parameters

styleArray
Style[]

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

index
Int32

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

Remarks

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

Applies to

See also