TTMSFNCResponsiveManager.FindState Method
Returns the state whose string constraint matches
AStringValue, ornilif none matches.
API unit family: TMSFNCResponsiveManager
Declaring type: TTMSFNCResponsiveManager
Inherited from: TTMSFNCCustomResponsiveManager
Overloads
Overload 1
Returns the state whose string constraint matches
AStringValue, ornilif none matches.
function FindState(AStringValue: string): TTMSFNCResponsiveManagerItem; overload; virtual;
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, ornilif none matches.
function FindState(ABooleanValue: Boolean): TTMSFNCResponsiveManagerItem; overload; virtual;
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, ornilif none matches.
function FindState(ANumberValue: Extended): TTMSFNCResponsiveManagerItem; overload; virtual;
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
nilif none matches.
function FindState: TTMSFNCResponsiveManagerItem; overload; virtual;
Returns
The matching TTMSFNCResponsiveManagerItem, or nil.