IndexOf returns the index of the button category with the given caption.
function IndexOf(const Caption: string): Integer;
__fastcall int IndexOf(const AnsiString Caption);
Call IndexOf to obtain the index of the button category in the Items category list, with the caption specified through the Caption parameter.
IndexOf does both a case-sensitive and a case-insensitive search through the captions of the items in the button category list.
IndexOf searches through both the visible and the non-visible categories, as opposed to the ItemIndex method, that only looks through the visible categories.
IndexOf returns the index of the button category with the given caption, if found, or -1 otherwise.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!