IMapScale.Value

Syntax

Value(Index: Integer): Double;

Parameters

Index - scale tick mark index.

Description

The Value property determines scale tick mark value.

Comments

The specified value determines the color/hatching/number (depending on the scale type) of the indicator values. On using the scale values auto calculation (AutoCalculate) this property should not be set. The AutoSetup and/or AutoSetupEx methods, that enable the user to automatically calculate the scale tick mark values, are also implemented for scales.

Example

The example requires the Report object of the IPrxReport type.

Sub UserProc;

Var

Report: IPrxReport;

MapScale : IMapColorScale;

i : Integer;

Begin

MapScale := Report.Scales.Add(PrxMapScale.Color).MapScale As IMapColorScale;

MapScale.Count := 7;

For i := 0 To MapScale.Count - 1 Do

MapScale.Value(i) := (i + 1) * 3000;

MapScale.Color(i, MapScaleSettingImpact.Less) := New GxColor.CreateRGB(120, 100 + (i*15), 225);

MapScale.Color(i, MapScaleSettingImpact.Exact) := New GxColor.CreateRGB(170, 100 + (i*15), 225);

MapScale.Color(i, MapScaleSettingImpact.Greater) := New GxColor.CreateRGB(220, 100 + (i*15), 225);

End For;

End Sub UserProc;

A color scale is created for the regular report.

See also:

IMapScale