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

Move a layer up or down in the viewer zorder list. This procedure take in count only visible layer; invisible layer (HideFromLegend=True) located after current layer will be moved together. If current layer is not visible; then 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 TGIS_Layer.Move instead.

Example

Delphi

// let's layer to the beginning
layer.MoveEx(-1);
2019/09/27 01:07