ISpeedometerView.CentralShape

Синтаксис

CentralShape: ISpeedometerCentralShape;

Описание

Свойство CentralShape возвращает параметры круга, расположенного в центре спидометра.

Пример

Для выполнения примера предполагается наличие формы, расположенной на ней кнопки с наименованием «Button1» и компонента SpeedometerBox с наименованием «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;

После выполнения примера при нажатии на кнопку будет настроено оформление круга, расположенного в центре спидометра компонента «SpeedometerBox1».

См. также:

ISpeedometerView