User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.itgis_layervector.getshape_olevariant

ITGIS_LayerVector.GetShape method

DK11 for ActiveX | TatukGIS_XDK11.ITGIS_LayerVector.GetShape | Methods | Properties

Gets a shape by its unique identifier on default cursor (0).

Available also on: Delphi | .NET | Java | Python.

Syntax

// C#
public ITGIS_Shape GetShape(
  OleVariant _uid
);
' VisualBasic
Public Function GetShape(
  ByVal _uid As OleVariant
) As ITGIS_Shape
// Oxygene
public
  function GetShape(
    _uid : OleVariant
  ) : ITGIS_Shape;

Parameters

Name Type Description
_uid OleVariant identifier /same as current record for SHP file/

Result

Type Description
ITGIS_Shape Shape itself or nil.

Remarks

The GetShape returns a weak reference to an internal shape of the current cursor, therefore is not permanent. Another call of GetShape will change this reference. To get a strong reference, call MakeEditable() or CreateCopy() on a shape.

References

2022/11/16 01:10

Page Tools