Color: IGxColor;
The Color property determines a background fill color.
It is used if any background type is set except for SpeedometerBackgroundType.Picture. Assigning of the property depends on the selected type of background fill.
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.Color;
Back.Color := GxColor.FromName("Yellow");
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. A solid yellow color is set for the speedometer background.
See also: