Skip to main content
Table of Contents

TTMSFNCGraphics.TextToColor Method

Parses a named color string and returns the equivalent color value.

API unit family: TMSFNCGraphics Declaring type: TTMSFNCGraphics

Syntax

FMX.TMSFNCGraphics.hppPascalC++
class function TextToColor(AText: string): TTMSFNCGraphicsColor; virtual;
__classmethod virtual TTMSFNCGraphicsColor __fastcall TextToColor(System::UnicodeString AText);

Parameters

Name Description
AText Named color string such as red or blue.

Returns

The parsed color value, or gcNull if the name is not recognised.