User Tools

Site Tools


api:dk11:net:tatukgis.ndk.tgis_layervector.getnewuid_void

Table of Contents

TGIS_LayerVector.GetNewUid method

DK11 for .NET | TatukGIS.NDK.TGIS_LayerVector.GetNewUid | Constructors | Fields | Methods | Properties | Events

Get Uid for a new shape.

Available also on: Delphi | Java | ActiveX.

Syntax

// C#
public long GetNewUid();
' VisualBasic
Public Function GetNewUid() As Long
// Oxygene
public
  function GetNewUid : TGIS_Uid; virtual;

Result

Type Description
long
TGIS_Uid
0 if Uid not assigned (in fact, only for pixel layers) or Uid value.

Remarks

Use this method to find a Uid for a new shape. It simply uses GetLastUid method to obtain next id. See example in GetLastUid.

When using this operation, never call any function which uses FindFirst..FindNext (any function which iterates through the shapes using it - so never use inside an operation like Locate, PaintScope> etc.).

2019/09/27 01:17