ScaleLinePen: IGxPen;
The ScaleLinePen property determines the pen that is used to render the line positioned in the area of scale tick marks values.
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;
v: ISpeedometerView;
ScaleView: ISpeedometerScaleView;
Pen: IGxPen;
Begin
s := SpeedometerBox1.Speedometer;
v := s.View;
s.BeginUpdate;
ScaleView := v.ScaleViews.Item(0);
Pen := New GxPen.CreateSolid(GxColor.FromName("Yellow"), 4);
ScaleView.ScaleLinePen := Pen;
s.EndUpdate;
End Sub Button1OnClick;
After executing the example, on clicking the button, the formatting of the line displayed in the speedometer scale tick marks values area displayed in the SpeedometerBox1 component is changed.
See also: