Exact(Index: Integer): IGxColor;
Index - scale tick mark index.
The Exact property determines fill color of the factor, which values are equal to the scale tick mark value.
Each scale tick mark value is matched with one of the three color gradations (less, equals, greater).
The example requires the Report object of the IPrxReport type. A color scale must be created in the regular report.
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(120, 100 + (i*15), 225);
MapScale.Exact(i) := New GxColor.CreateRGB(170, 100 + (i*15), 225);
MapScale.Greater(i) := New GxColor.CreateRGB(220, 100 + (i*15), 225);
End For;
MapScale.NoData := New GxColor.CreateRGB(250, 0, 0);
End Sub UserProc;
After executing the example the colors are altered for all color scale tick marks.
See also: