ScaleViews: ISpeedometerScaleViews;
The ScaleViews property returns the collection of speedometer scales formatting styles.
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;
ScaleV: ISpeedometerScaleView;
Begin
s := SpeedometerBox1.Speedometer;
v := s.View;
s.BeginUpdate;
ScaleV := s.View.ScaleViews.Item(0);
ScaleV.StartAngle := 0;
ScaleV.DeltaAngle := 180;
ScaleV.Font := New GxFont.Create("Arial", 10);
ScaleV.FontColor := GxColor.FromName("Blue");
ScaleV.TextPlacement := SpeedometerTextPlacementType.OutsideRotated;
s.EndUpdate;
End Sub Button1OnClick;
After executing the example, on clicking the button, the scale formatting parameters of the speedometer displayed in the SpeedometerBox1 component are changed.
See also: