IMapColorScale.Exact

Syntax

Exact(Index: Integer): IGxColor;

Parameters

Index. Scale tick mark index.

Description

The Exact property determines fill color of the indicator, which values are equal to the scale tick mark value.

Comments

Each scale tick mark value is matched with one of the three color gradations (less, equals, greater).

Example

The example requires the Report object of the IPrxReport type. A color scale must be created in the regular report.

Add links to the Drawing, Map, and Report system assemblies.

Sub UserProc;
Var
    Report : IPrxReport;
    MapScale : IMapColorScale;
    i: Integer;
Begin
    MapScale := Report.Scales.Item(0).MapScale As IMapColorScale;
    For i := 0 To MapScale.Count - 1 Do
        MapScale.Less(i) := New GxColor.CreateRGB(120100 + (i*15), 225);
        MapScale.Exact(i) := New GxColor.CreateRGB(170100 + (i*15), 225);
        MapScale.Greater(i) := New GxColor.CreateRGB(220100 + (i*15), 225);
    End For;
    MapScale.NoData := New GxColor.CreateRGB(25000);
End Sub UserProc;

After executing the example the colors are altered for all color scale tick marks.

See also:

IMapColorScale