ISpeedometerScaleView.StartAngle

Syntax

StartAngle: Double;

Description

The StartAngle property determines the initial angle of the scale.

Example

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

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

Var

s: ISpeedometer;

v: ISpeedometerView;

ScaleView: ISpeedometerScaleView;

Begin

s := SpeedometerBox1.Speedometer;

v := s.View;

s.BeginUpdate;

ScaleView := v.ScaleViews.Item(0);

ScaleView.StartAngle := -80;

ScaleView.DeltaAngle := 340;

s.EndUpdate;

End Sub Button1OnClick;

If the user presses the button after executing this example, the design of speedometer scale that is displayed in the SpeedometerBox1 component is changed. The initial angle and angle of the working area is changed for the scale.

See also:

ISpeedometerScaleView