ISpeedometerBackground.HatchStyle

Syntax

HatchStyle: GxHatchStyle;

Description

The HatchStyle property determines a type of hatching used for background fill.

Example

Executing the example requires a form with the Button1 button and the SpeedometerBox component named SpeedometerBox1.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

s: ISpeedometer;

v: ISpeedometerView;

Back: ISpeedometerBackground;

Begin

s := SpeedometerBox1.Speedometer;

v := s.View;

s.BeginUpdate;

Back := v.Background;

Back.Type := SpeedometerBackgroundType.Hatch;

Back.Color := GxColor.FromName("Green");

Back.HatchStyle := GxHatchStyle.Shingle;

s.EndUpdate;

End Sub Button1OnClick;

After executing the example, on clicking the button, formatting parameters of the speedometer displayed in the SpeedometerBox1 component are changed. Hatching fill is set for speedometer background. Color of the fill is green.

See also:

ISpeedometerBackground