IMapColorScale.Color

Syntax

Color(Index: Integer; Impact: MapScaleSettingImpact): IGxColor;

Parameters

Index. Scale tick mark index.

Impact. It determines position relative to scale tick mark value.

Description

The Color property determines the fill color relative to the specified scale tick mark value.

Comments

Each scale tick mark value (IMapScale.Value) has three color gradations. Indicators will be colored as follows:

Example

The example requires the Report object of the IPrxReport type.

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

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(120100 + (i*15), 225);
        MapScale.Color(i, MapScaleSettingImpact.Exact) := New GxColor.CreateRGB(170100 + (i*15), 225);
        MapScale.Color(i, MapScaleSettingImpact.Greater) := New GxColor.CreateRGB(220100 + (i*15), 225);
    End For;
End Sub UserProc;

A color scale is created for the regular report.

See also:

IMapColorScale