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

class function TextToColor(AText: string): TTMSFNCGraphicsColor; virtual;

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.