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


IEngineEditor.CurrentTask Property (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Controls)  

IEngineEditor.CurrentTask Property

The current edit task.

[Visual Basic .NET]
Public Property CurrentTask As IEngineEditTask
[C#]
public IEngineEditTask CurrentTask {get; set;}
[C++]
HRESULT get_CurrentTask(
  IEngineEditTask** Task
);
[C++]
HRESULT putref_CurrentTask(
  IEngineEditTask* Task
);
[C++]

Parameters Task [out, retval]
Task is a parameter of type IEngineEditTask Task [in]
Task is a parameter of type IEngineEditTask

Product Availability

Available with ArcGIS Engine.

Description

Use this property to check or change the EngineEditor's current task.

When an edit sketch is completed the IEngineEditTask::OnFinishSketch method of the current engine edit task uses the geometry stored in IEngineEditSketch::Geometry to perform some action (e.g. store any created features)

The IEngineEditEvents::OnCurrentTaskChanged event is fired when this property is set or when a different task is selected using the ControlsEditingTaskToolControl.

See Also

IEngineEditor Interface

.NET Samples

Editing using a custom form (Code Files: EditorForm) | Custom reshape polyline edit task (Code Files: ReshapePolylineEditTask) | Feature editing with the control commands (Code Files: FeatureEditing)