RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebComponentList.SetComponentIndex Method

Moves a component to a new position in the WebComponents array.

Pascal
procedure SetComponentIndex(Component: TComponent; Value: Integer);
C++
__fastcall SetComponentIndex(TComponent * Component, int Value);

Call SetComponentIndex to move a component to a new position in the list. Component specifies the component to move. Value specifies the index it should have after it is moved. If Value is less than 0, the component is moved to the first position. If Value is greater than or equal to count, the component is moved to the last position. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!