Vcl.CategoryButtons.TButtonCategories.IndexOf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IndexOf(const Caption: string): Integer;

C++

int __fastcall IndexOf(const System::UnicodeString Caption);

Properties

Type Visibility Source Unit Parent
function public
Vcl.CategoryButtons.pas
Vcl.CategoryButtons.hpp
Vcl.CategoryButtons TButtonCategories

Description

IndexOf returns the index of the button category with the given 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.

See Also