IPPSpeedometer.OuterRadius

Syntax

OuterRadius: IGxSizeF;

Description

The OuterRadius property determines a speedometer rendering area relative to speedometer center.

Example

Executing the example requires that the repository contains a database with the ADHOC identifier. A dashboard must contain a speedometer.

Add links to the Adhoc, Drawing, Express, Metabase, Speedometer system assemblies.

Sub UserProc;
Var
    Speedometer: IPPSpeedometer;
    MB: IMetabase;
    AdhocReport: IAdhocReport;
    EaxSpeedometer: IEaxSpeedometer;
    Enalyzer: IEaxAnalyzer;
    DsObjs: IAdhocDataSourceObjects;
Begin
    MB := MetabaseClass.Active;
    // Get dashboard 
    AdhocReport := MB.ItemById("ADHOC").Edit As IAdhocReport;
    // Get dashboard data sources
    DsObjs := AdhocReport.DataSourceObjects;
    // Get speedometer
    Enalyzer := DsObjs.Item(0).GetSourceObject As IEaxAnalyzer;
    EaxSpeedometer := Enalyzer.Speedometer;
    // Get speedometer parameters
    Speedometer := EaxSpeedometer.Speedometer;
    // Change speedometer rendering area
    Speedometer.OuterRadius.Width := 120;
    Speedometer.OuterRadius.Height := 120;
    Debug.Writeline("Speedometer center coordinates: " + Speedometer.CenterPosition.X.ToString + 
        ":" + Speedometer.CenterPosition.Y.ToString);
    (Enalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example speedometer rendering area is changed. The console window displays a message with speedometer center coordinates.

See also:

IPPSpeedometer