![]() |
This document is archived and information here might be outdated. Recommended version. |
| ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditor Interface > IEngineEditor.TaskCount Property (ArcObjects .NET 10.4 SDK) |
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
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.
IEngineEditTask engineEditTask;for(intcount=0; count < m_engineEditor.TaskCount; count++) { engineEditTask=m_engineEditor.get_Task(count);if(engineEditTask.UniqueName == "ControlToolsEditing_CreateNewFeatureTask") m_engineEditor.CurrentTask=engineEditTask; }
DimengineEditTaskAsIEngineEditTaskDimcountAs Integer Forcount=0Tom_engineEditor.TaskCount - 1Step1 engineEditTask=m_engineEditor.Task(count)If(engineEditTask.UniqueName="ControlToolsEditing_CreateNewFeatureTask")Thenm_engineEditor.CurrentTask=engineEditTaskEnd IfNext