IGxColorClass.FromName

Syntax

FromName(ColorName: String): IGxColor;

Parameters

ColorName. Color name.

Description

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

Example

Sub UserProc;
Var
    Color: IGxColor;
Begin
    Color := GxColor.FromName("Black");
End Sub UserProc;

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

See also:

IGxColorClass