User Tools

Site Tools


api:dk11:activex:tatukgis_xdk11.igis_editor.findsnappoint_itpoint_itgis_point_tgis_editorsnapresulttype

Table of Contents

IGIS_Editor.FindSnapPoint method

DK for ActiveX | TatukGIS_XDK11.IGIS_Editor.FindSnapPoint | Methods | Properties

Find a snap point based on a snap type from snap-to layers.

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

Syntax

// C#
public WordBool FindSnapPoint(
  ITPoint _pt,
  ref ITGIS_Point _ptg,
  ref TGIS_EditorSnapResultType _snapType
);
' VisualBasic
Public Function FindSnapPoint(
  ByVal _pt As ITPoint,
  ByRef _ptg As ITGIS_Point,
  ByRef _snapType As TGIS_EditorSnapResultType
) As WordBool
// Oxygene
public
  function FindSnapPoint(
    _pt : ITPoint;
    var _ptg : ITGIS_Point;
    var _snapType : TGIS_EditorSnapResultType
  ) : WordBool;

Parameters

Name Type Description
_pt ITPoint Mouse position
_ptg ITGIS_Point found snap point coordinates
_snapType TGIS_EditorSnapResultType found type of snap point (vertex, edge, intersection, midpoint )

Result

Type Description
WordBool True if any snap point was found
2025/01/31 01:03

Page Tools