ISpeedometerView.CentralShape

Syntax

CentralShape: ISpeedometerCentralShape;

Description

The CentralShape property returns parameters of the circle that is located in the centre of speedometer.

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;

CentralS: ISpeedometerCentralShape;

CentralSBack: ISpeedometerBackground;

Begin

s := SpeedometerBox1.Speedometer;

v := s.View;

s.BeginUpdate;

CentralS := v.CentralShape;

CentralSBack := CentralS.Background;

CentralSBack.Type := SpeedometerBackgroundType.Gradient;

CentralSBack.Color := GxColor.FromName("Red");

CentralSBack.GradientColor := GxColor.FromName("Green");

CentralS.ShapeOrder := SpeedometerArrowCircleOrder.BelowArrow;

CentralS.Radius := 0.7;

s.EndUpdate;

End Sub Button1OnClick;

If the user presses the button after executing this example, the design of the circle that is located in the centre of the SpeedometerBox1 speedometer component is set.

See also:

ISpeedometerView