IMapFillScale.Exact

Syntax

Exact(Index: Integer): GxHatchStyle;

Parameters

Index - scale tick mark index.

Description

The Exact property determines hatching type for the values that are equal to the scale tick mark.

Example

Executing the example requires a form, a button named Button1 on the form, the UiMap component named UiMap1 that is a data source for the MapBox component. The map must be connected to the UiMap1 component. The VisualDataAdapter class, that creates a dynamic data source, must also be implemented. The class example is contained in the IMapVisual.DataAdapter property description.

Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);

Var

Map: IMap;

Layer: IMapLayer;

AreaVisual: IMapAreaVisual;

Fill: IMapVisualFillProperty;

Color: IMapVisualColorProperty;

Scale: IMapFillScale;

Begin

Map := UiMap1.Map;

Layer := Map.Layers.FindByName("Regions");

AreaVisual := Layer.Visuals.AddAreaVisual;

AreaVisual.DataAdapter := New VisualDataAdapter.Create As IMapDynamicDataAdapter;

Fill := AreaVisual.Fill;

Fill.DataAdapter := AreaVisual.DataAdapter;

Scale := Fill.Scale;

Scale.Count := 1;

Scale.AutoCalculable := True;

Scale.Greater(0) := GxHatchStyle.Cross;

Scale.Less(0) := GxHatchStyle.DarkUpwardDiagonal;

Scale.Exact(0) := GxHatchStyle.BackwardDiagonal;

Scale.NoData := GxHatchStyle.Divot;

Fill.Dependent := True;

Color := AreaVisual.FillColor;

Color.Values.Count := 1;

Color.Values.Item(0) := GxColor.FromName("Blue");

Map.Refresh;

End Sub Button1OnClick;

After executing the example the map indicator, which hatching type is scale determined, is added to the Regions layer:

See also:

IMapFillScale