ArcObjects Library Reference (System)  

ITrackCancel Interface

Provides access to members that control the Cancel Tracker.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

The CancelTracker object is the object used by ArcObjects to monitor the Esc key (optionally, the space bar and mouse clicks as well) and to terminate processes at the request of the user. A CancelTracker is typically handed into or created just prior to functions that execute a lengthy operation such as, printing, exporting and drawing.

The ITrackCancel interface provides access to properties and methods that determine if a cancellation has been executed by the user, and also allows developers to specify what actions constitute a cancellation.

Members

Description
Method Cancel Cancels the associated operation.
Read/write property CancelOnClick Indicates whether mouse clicks should cancel the operation.
Read/write property CancelOnKeyPress Indicates whether the escape key and spacebar should cancel the operation.
Read/write property CheckTime The interval at which the operation will be interrupted to advance progressors and process messages.
Method Continue Called frequently while associated operation is progressing. A return value of false indicates that the operation should stop.
Read/write property ProcessMessages An obsolete method.
Read/write property Progressor The progressor used to show progress during lengthy operations.
Method Reset Resets the manager after the associated operation is finished.
Method StartTimer An obsolete method.
Method StopTimer An obsolete method.
Read-only property TimerFired An obsolete method.

CoClasses that implement ITrackCancel

CoClasses and Classes Description
CancelTracker (esriDisplay) Cancel tracker class for interrupting drawing.
GPServerTrackCancel (esriGeoprocessing) GP Server Track Cancel Class.
ThreadedJobTrackCancel (esriDataSourcesRaster) A cancel tracker for threaded jobs.

.NET Snippets

Show Progress Dialog |

.NET Samples

Calculate area geoprocessing function tool (Code Files: CalculateAreaFunction) | Executing geoprocessing tools (Code Files: copyfeatures) | Implementing a schematic layout algorithm and its layout property page (Code Files: TranslateTree) | Implementing a schematic rule and its property page (Code Files: ReductionLinkRule) | Import signposts (Code Files: ImportDynamapSignsFunction ImportMultiNetSignsFunction ImportNavStreetsSignsFunction SignpostUtilities) | Multivariate renderer (Code Files: MultivariateRenderer) | Print preview using the PageLayoutControl (Code Files: PrintPreview) | Time Series Graph tool add-in (Code Files: TimeSeriesGraph) | Triangle graphic element (Code Files: TriangleElementClass) |

.NET Related Topics

Converting labels to geodatabase annotation for a single layer | Converting labels to geodatabase annotation for an entire map | Converting labels to map annotation for a single layer | How to set up a Network Analyst solve to work with the undo/redo stack | Publisher |