IGxColorClass.FromName

Syntax

FromName(ColorName: String): IGxColor;

Parameters

ColorName - color name.

Description

The FromName method returns the object that contains the color, which name is passed by the ColorName parameter.

Example

Sub Main;

Var

Color: IGxColor;

Begin

Color:=GxColor.FromName("Black");

End Sub Main;

After executing the example the Color variable contains the black color.

See also:

IGxColorClass