This document is archived and information here might be outdated.  Recommended version.


IEditTask Interface (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditTask Interface
ArcGIS Developer Help

IEditTask Interface

Provides access to a task that receives notification when the sketch is complete.

Product Availability

Available with ArcGIS Desktop.

When To Use

The purpose of the IEditTask interface is to take a geometry (the edit sketch) from IEditSketch::Geometry and perform some action with it. Each edit task performs a different operation with this geometry. For example, the CreateNewFeature edit task takes the edit sketch and stores it as a new feature. The Reshape Feature edit task uses the edit sketch to reshape a selected feature. The editor can only have one active edit task at a time, use IEditor::CurrentTask to set this.
All edit tasks implement the IEditTask interface. Edit tasks must be registered in the ESRI Edit Tasks component category to appear in the Edit Task dropdown menu on the Editor toolbar.

Members

Name Description
Method Activate Called by the editor when the task becomes active.
Method Deactivate Called by the editor when the task becomes inactive.
Read-only property Name The name of the edit task.
Method OnDeleteSketch Notifies the task that the edit sketch has been deleted.
Method OnFinishSketch Notifies the task that the edit sketch is complete.

Classes that implement IEditTask

Classes Description

Remarks

You can find and set an edit task either by using the Name property in conjunction with IEdtior::TaskCount and IEditor::Task or by IEditTaskSearch

See Also

IEditSketch Interface | IEditor Interface | IEditAttributeProperties Interface