Skip to main content
Table of Contents

TTMSFNCCustomResponsiveManager.SaveToNewState Method

Captures the current control state into a new collection item and returns it.

API unit family: TMSFNCResponsiveManager Declaring type: TTMSFNCCustomResponsiveManager

Overloads

Overload 1

Captures the current control state into a new collection item and returns it.

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

Returns

The newly created TTMSFNCResponsiveManagerItem containing the captured state.

Overload 2

Captures the current control state into a new collection item with a string constraint and returns it.

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

Parameters

Name Description
AStringValue The string constraint value assigned to the new state.

Returns

The newly created TTMSFNCResponsiveManagerItem.

Overload 3

Captures the current control state into a new collection item with a boolean constraint and returns it.

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

Parameters

Name Description
ABooleanValue The boolean constraint value assigned to the new state.

Returns

The newly created TTMSFNCResponsiveManagerItem.

Overload 4

Captures the current control state into a new collection item with a numeric constraint and returns it.

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

Parameters

Name Description
ANumberValue The numeric constraint value assigned to the new state.

Returns

The newly created TTMSFNCResponsiveManagerItem.