ArcObjects Library Reference (Editor)  

IEditor.TaskCount Property

The number of edit tasks.

[Visual Basic .NET]
Public ReadOnly Property TaskCount As Integer
[C#]
public int TaskCount {get;}

Product Availability

Available with ArcGIS Desktop.

Remarks

This property returns the number of tasks the editor currently has loaded. When changing the current task programmatically, use TaskCount with Task and IEditTask::Name to loop through all available tasks and find the correct one.  Or alternatively you can use the edit task's unique name and IEditTaskSearch::TaskByUniqueName to find the desired edit task.

See Also

IEditor Interface | IEditTask.OnDeleteSketch Method | IEditTask.Name Property | IEditTask.OnFinishSketch Method | IEditTask.Activate Method | IEditTask.Deactivate Method | IEditor.Task Property | IEditor.CurrentTask Property