Skip to main content
Table of Contents

TTMSFNCResponsiveManager.FindState Method

Returns the state whose string constraint matches AStringValue, or nil if none matches.

API unit family: TMSFNCResponsiveManager Declaring type: TTMSFNCResponsiveManager Inherited from: TTMSFNCCustomResponsiveManager

Overloads

Overload 1

Returns the state whose string constraint matches AStringValue, or nil if none matches.

FMX.TMSFNCResponsiveManager.hppPascalC++
function FindState(AStringValue: string): TTMSFNCResponsiveManagerItem; overload; virtual;
virtual TTMSFNCResponsiveManagerItem* __fastcall FindState(System::UnicodeString AStringValue)/* overload */;

Parameters

Name Description
AStringValue The string value to search for.

Returns

The matching TTMSFNCResponsiveManagerItem, or nil.

Overload 2

Returns the state whose boolean constraint matches ABooleanValue, or nil if none matches.

FMX.TMSFNCResponsiveManager.hppPascalC++
function FindState(ABooleanValue: Boolean): TTMSFNCResponsiveManagerItem; overload; virtual;
virtual TTMSFNCResponsiveManagerItem* __fastcall FindState(bool ABooleanValue)/* overload */;

Parameters

Name Description
ABooleanValue The boolean value to search for.

Returns

The matching TTMSFNCResponsiveManagerItem, or nil.

Overload 3

Returns the state whose numeric constraint matches ANumberValue, or nil if none matches.

FMX.TMSFNCResponsiveManager.hppPascalC++
function FindState(ANumberValue: Extended): TTMSFNCResponsiveManagerItem; overload; virtual;
virtual TTMSFNCResponsiveManagerItem* __fastcall FindState(System::Extended ANumberValue)/* overload */;

Parameters

Name Description
ANumberValue The numeric value to search for.

Returns

The matching TTMSFNCResponsiveManagerItem, or nil.

Overload 4

Returns the best-matching size-based breakpoint state for the current control dimensions, or nil if none matches.

FMX.TMSFNCResponsiveManager.hppPascalC++
function FindState: TTMSFNCResponsiveManagerItem; overload; virtual;
virtual TTMSFNCResponsiveManagerItem* __fastcall FindState()/* overload */;

Returns

The matching TTMSFNCResponsiveManagerItem, or nil.