An asynchronous method call which executes the specified delegate and begins an operation to create a new Polygon at the location of a series of
mouse clicks on the display, using the specified line color and width while tracking.
Namespace:
ESRI.ArcGISExplorer.MappingAssembly: ESRI.ArcGISExplorer (in ESRI.ArcGISExplorer.dll) Version: 2.0.0.900 (2.0.0.900)
Syntax
C# |
---|
public void BeginTrackPolygon( TrackDelegate trackDelegate, Color color, double width ) |
Visual Basic (Declaration) |
---|
Public Sub BeginTrackPolygon ( _ trackDelegate As TrackDelegate, _ color As Color, _ width As Double _ ) |
Parameters
- trackDelegate
- Type: ESRI.ArcGISExplorer.Mapping..::.TrackDelegate
A tracking delegate that contains a method to be called when the user interacts with the display.
- color
- Type: System.Drawing..::.Color
The color of the partially completed line shown during the tracking operation.
- width
- Type: System..::.Double
The width in pixels of the partially completed line shown during the tracking operation. Default is 1, maximum is 10.
Remarks
The BeginTrackPolygon method calls a delegate which allows returning a user-clicked Polygon on the map. The TrackDelegate allows mouse moves and tracking cancellation to be identified. The tracked Polygon is available from the Geometry passed to the delegate.
This asynchronous method will return immediately, allowing the user interface (UI) thread to continue working. After this method is called, the trackDelegate method will be called when the user interacts with the display.