RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWebComponentList.IndexOf Method

Returns the index of a specified component in the WebComponents array.

Pascal
function IndexOf(Component: TComponent): Integer;
C++
__fastcall int IndexOf(TComponent * Component);

Call IndexOf to get the index for a component in the WebComponents array. Specify the desired component as the Component parameter.  

The first component in the array has index 0, the second component has index 1, and so on. If a component is not in the list, IndexOf returns -1. If a component appears more than once in the array, IndexOf returns the index of the first appearance. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!