FMX.ImgList.TSourceCollection.IndexOf

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function IndexOf(const Name: string): Integer;

C++

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

Properties

Type Visibility Source Unit Parent
function public
FMX.ImgList.pas
FMX.ImgList.hpp
FMX.ImgList TSourceCollection

Description

Searches for the source item having the specified Name and returns Index of this item in the current source collection.

In the current TSourceCollection collection, IndexOf tries to find the source item having case-sensitive Name specified by Name. If search is successful, IndexOf returns the Index of the found TCustomSourceItem item. Otherwise, IndexOf returns -1.

See Also