Skip to main content
Table of Contents

TTMSFNCCustomColorSelector.FindItemByColor Method

Returns the item index of the first item whose color matches the given color value.

API unit family: TMSFNCColorSelector Declaring type: TTMSFNCCustomColorSelector

Syntax

FMX.TMSFNCColorSelector.hppPascalC++
function FindItemByColor(AColor: TTMSFNCGraphicsColor): Integer;
int __fastcall FindItemByColor(Fmx::Tmsfncgraphicstypes::TTMSFNCGraphicsColor AColor);

Parameters

Name Description
AColor The color to search for.

Returns

Zero-based item index, or -1 if not found.