ISpeedometerScaleView.TextPlacement

Syntax

TextPlacement: SpeedometerTextPlacementType;

Description

The TextPlacement property determines the position of the text of the scale tick marks values relative to these tick marks.

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

See also:

ISpeedometerScaleView