ISpeedometerArrow.Value

Syntax

Value: Integer;

Description

The Value property determines the value that is indicated by the arrow.

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;

Scale: ISpeedometerScale;

Arrow: ISpeedometerArrow;

Begin

s := SpeedometerBox1.Speedometer;

s.BeginUpdate;

Scale := s.Scales.Item(0);

Arrow := Scale.Arrows.Item(0);

Arrow.Value := 135;

End Sub Button1OnClick;

After executing the example, on clicking the button, the value displayed by speedometer arrow is changed.

See also:

ISpeedometerArrow