ISpeedometerArrows.Item

Syntax

Item(Index: Integer): ISpeedometerArrow;

Options

Index - an index of arrow which parameters it is necessary to obtain.

Description

The Item property returns the parameters of arrow, which index is passed by the Index parameter.

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;

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;

If the user presses the button after executing this example, the value displayed by speedometer arrow is changed.

See also:

ISpeedometerArrows