GxSolidBrush.Create

Fore Syntax

Create(Color: IGxColor);

Fore Syntax

Create(Color: Prognoz.Platform.Interop.Drawing.GxColor);

Parameters

Color. Brush color.

Description

The Create constructor creates a new solid brush with the color specified in the Color parameter.

Fore Example

Function GetSolidBrush(BrushColor: GxKnownColor): IGxSolidBrush;
Var
    SolidBrush: IGxSolidBrush;
Begin
    SolidBrush := New GxSolidBrush.Create(GxColor.FromKnownColor(BrushColor));
    Return SolidBrush;
End Function GetSolidBrush;

The function returns a solid brush, which color is passed as an input parameter.

Fore.NET Example

Imports Prognoz.Platform.Interop.Drawing;

Function GetSolidBrush(BrushColor: GxKnownColor): IGxSolidBrush;
Var
    GxColorCls: GxColorClass = New GxColorClassClass();
    SolidBrush: GxSolidBrush = New GxSolidBrushClass();
Begin
    SolidBrush.Create(GxColorCls.FromKnownColor(BrushColor));
    Return SolidBrush;
End Function;

This function returns a solid brush, which color is passed as an input parameter.

See also:

GxSolidBrush