GxHatchBrush.Create

Fore Syntax

Create(HatchStyle: GxHatchStyle; ForegroundColor: IGxColor; BackgroudColor: IGxColor);

Fore.NET Syntax

Create(HatchStyle: Prognoz.Platform.Interop.Drawing.GxHatchStyle; ForegroundColor: Prognoz.Platform.Interop.Drawing.GxColor; BackgroudColor: Prognoz.Platform.Interop.Drawing.GxColor);

Parameters

HatchStyle. Hatching type.

ForegroundColor. Hatching background color.

BackgroudColor. Color of hatching lines.

Description

The Create constructor creates a new hatching brush in accordance with the specified parameters.

Fore Example

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.

Fore.NET Example

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:

GxHatchBrush