IMapLayer.VisualOffset

Syntax

VisualOffset: Integer;

Description

The VisualOffset property determines a distance between bar and pie indicators located in line.

Comments

To set a distance between bar and pie indicators, the IMapLayer.PlaceVisualsOneByOne property must be set to True.

Example

Executing the example requires that the repository contains a regular report with the REPORT identifier containing a map. The map contains bar and pie indicators.

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

Sub UserProc;
Var
    MB: IMetabase;
    Report: IPrxReport;
    Map: IMap;
    Layer: IMapLayer;
Begin
    MB := MetabaseClass.Active;
    Report := MB.ItemById("REPORT").Edit As IPrxReport;
    Map := (Report.ActiveSheet As IPrxTable).TabSheet.Objects.Item(0).Extension As IMap;
    Layer := Map.Layers.Item(0);
    Layer.VisualOffset := 10;
    If Not Layer.PlaceVisualsOneByOne Then
        Layer.PlaceVisualsOneByOne := True;
    End If;
End Sub UserProc;

After executing the example a distance between bar and pie indicators is changed.

See also:

IMapLayer