ISpeedometerScaleViews.Item

Syntax

Item(Index: Integer): ISpeedometerScaleView;

Options

Index - an index of the style of speedometer scale design.

Description

The Item property returns the parameters of speedometer scale design style.

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;

ScaleView: ISpeedometerScaleView;

Begin

s := SpeedometerBox1.Speedometer;

v := s.View;

s.BeginUpdate;

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

ScaleView.StartAngle := -90;

ScaleView.Font := New GxFont.Create("Arial", 10);

ScaleView.FontColor := GxColor.FromName("Green");

ScaleView.TextPlacement := SpeedometerTextPlacementType.OutsideRotated;

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 start angle, font and font color that are used for displaying of scale tick marks values are changed. The placing of divisions values text is also changed relative to these divisions.

See also:

ISpeedometerScaleViews