Create(HatchStyle: GxHatchStyle; ForegroundColor: IGxColor; BackgroudColor: IGxColor);
Create(HatchStyle: Prognoz.Platform.Interop.Drawing.GxHatchStyle; ForegroundColor: Prognoz.Platform.Interop.Drawing.GxColor; BackgroudColor: Prognoz.Platform.Interop.Drawing.GxColor);
HatchStyle. Hatching type.
ForegroundColor. Hatching background color.
BackgroudColor. Color of hatching lines.
The Create constructor creates a new hatching brush in accordance with the specified parameters.
Function GetHatchBrush(ForegroundColor: GxKnownColor; BackgroudColor: GxKnownColor): IGxHatchBrush;
Var
FColor, BColor: IGxColor;
HatchBrush: IGxHatchBrush;
Begin
FColor := GxColor.FromKnownColor(ForegroundColor);
BColor := GxColor.FromKnownColor(BackgroudColor);
HatchBrush := New GxHatchBrush.Create(GxHatchStyle.HorizontalBrick, FColor, BColor);
Return HatchBrush;
End Function GetHatchBrush;
The function returns hatching brush with the specified hatching type. Brush colors are passed by input parameters.
Imports Prognoz.Platform.Interop.Drawing;
Function GetHatchBrush(ForegroundColor: GxKnownColor; BackgroudColor: GxKnownColor): GxHatchBrush;
Var
FColor, BColor: GxColor;
GxColorCls: GxColorClass = New GxColorClassClass();
HatchBrush: GxHatchBrush = New GxHatchBrushClass();
Begin
FColor := GxColorCls.FromKnownColor(ForegroundColor);
BColor := GxColorCls.FromKnownColor(BackgroudColor);
HatchBrush.Create(GxHatchStyle.ghsHorizontalBrick, FColor, BColor);
Return HatchBrush;
End Function;
This function returns hatching brush with the specified hatching type. Brush colors are passed by input parameters.
See also: