ISpeedometerView.ScaleViews

Syntax

ScaleViews: ISpeedometerScaleViews;

Description

The ScaleViews property returns collection of speedometer scales visual styles.

Example

Executing this 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;

If the user presses the button after executing this example, the parameters of scale design of the speedometer that is displayed in the SpeedometerBox1 component are changed.

See also:

ISpeedometerView