A synchronous (blocking) call which returns a new vector (Polyline with two points) at the location of two mouse clicks on the display.

Namespace:  ESRI.ArcGISExplorer.Mapping

Assembly:  ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.1500 (2.0.0.1500)

Syntax

C#
public Polyline TrackVector()
Visual Basic (Declaration)
Public Function TrackVector As Polyline

Return Value

A new Polyline defined by two mouse clicks on the display.

Remarks

The TrackVector method is the simplest way to return a user-clicked vector on the map. A vector is a special case of a Polyline with exactly two points, used only in ArcGIS Explorer during tracking operations (there is no vector geometry type). Overloads are available which allow a specific color and width to be used to display the shape during the tracking operation. Alternative methods are available to track points, polylines, and polygons.

This method will block the user interface (UI) thread until the user has clicked on the display. The method can be cancelled if the ESC key is pressed after the method has been called or the CancelTracking()()() method is called; in this case the method will return nullNothingnullptra null reference (Nothing in Visual Basic).

Alternatively you may wish to use an asynchronous equivalent, see the BeginTrackVector methods.

See Also