IMapScale.Count

Syntax

Count: Integer;   

Description

The Count property determines the number of scale tick marks.

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier.

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

Sub UserProc;
Var 
    MB: IMetabase;
    Report: IPrxReport;
    MapScale : IMapColorScale;
    i : Integer;
Begin
    // Get repository
    MB := MetabaseClass.Active;
    // Get regular report
    Report := MB.ItemById("REPORT").Edit As IPrxReport;
    // Add a color scale
    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:

IMapScale