Create(Color: IGxColor);
Create(Color: Prognoz.Platform.Interop.Drawing.GxColor);
Color. Brush color.
The Create constructor creates a new solid brush with the color specified in the Color parameter.
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.
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: