User Tools

Site Tools


api:dk11:delphi:gislayer.tgis_layer.moveex_integer

Table of Contents

TGIS_Layer.MoveEx method

DK11 for Delphi | GisLayer.TGIS_Layer.MoveEx | Constructors | Fields | Methods | Properties | Events

Moves a layer up or down in the viewer zorder list (only visible layers). This procedure takes into account only visible layers; invisible layers (HideFromLegend=True) located after current layer will be moved together. If current layer is not visible, then the nearest visible (but previous on the Items list) layer will be used as an anchor.

Available also on: .NET | Java | ActiveX.

Syntax

// Delphi
public
  procedure MoveEx(
    const _step : Integer
  ); virtual;
// C++ Builder
public:
  virtual void MoveEx(
    const int _step
  );

Parameters

Name Type Description
_step Integer how many steps and in which direction a layer must be moved; negative values mean movement to the front.

Remarks

To move layer regardless of visibility (any HideFromLegend value), use instead TGIS_Layer.Move instead.

Example

Delphi

// let's layer to the beginning
layer.MoveEx(-1);
2020/05/07 01:07

Page Tools