ISpeedometerArrows.Item

Syntax

Item(Index: Integer): ISpeedometerArrow;

Parameters

Index - index of the arrow, which parameters must be obtained.

Description

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

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:

ISpeedometerArrows