IPPSpeedometer.TopPadding

Syntax

TopPadding: Double;

Description

The TopPadding property determines a top padding of speedometer.

Comments

The property is set to 0 by default.

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, 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;
    // Determine new padding parameters
    Speedometer.TopPadding := 30;
    Speedometer.BottomPadding := 30;
    Speedometer.RightPadding := 30;
    Speedometer.LeftPadding := 30;
    (Enalyzer As IMetabaseObject).Save;
End Sub UserProc;

After executing the example new parameters of speedometer padding are determined.

See also:

IPPSpeedometer