ArcObjects Library Reference (Controls)  

IEngineEditor.TaskCount Property

The number of edit tasks.

[Visual Basic .NET]
Public ReadOnly Property TaskCount As Integer
[C#]
public int TaskCount {get;}
[C++]
HRESULT get_TaskCount(
  long* Count
);
[C++]

Parameters

Count [out, retval]   Count is a parameter of type long

Product Availability

Available with ArcGIS Engine.

Description

This property returns the number of engine edit tasks that the EngineEditor currently has loaded.

For example, use TaskCount to loop through all available tasks.

[C#]

[C#]
IEngineEditTask engineEditTask;
for (int count = 0; count < m_engineEditor.TaskCount; count++)
{
     engineEditTask = m_engineEditor.get_Task(count);
     if (engineEditTask.UniqueName == "ControlToolsEditing_CreateNewFeatureTask")
         m_engineEditor.CurrentTask = engineEditTask;
}

[Visual Basic .NET]

[Visual Basic .NET]
Dim engineEditTask As IEngineEditTask
Dim count As Integer
For count = 0 To m_engineEditor.TaskCount - 1 Step 1
    engineEditTask = m_engineEditor.Task(count)
    If (engineEditTask.UniqueName = "ControlToolsEditing_CreateNewFeatureTask") Then
        m_engineEditor.CurrentTask = engineEditTask
    End If
Next

See Also

IEngineEditor Interface