This document is archived and information here might be outdated. Recommended version. |
The number of edit tasks.
[Visual Basic .NET]
Public ReadOnly Property TaskCount As Integer
[C#]
public int TaskCount {get;}
[C++]
HRESULT get_TaskCount(
System.Int32* 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
(int
count = 0; count < m_engineEditor.TaskCount; count++) { engineEditTask = m_engineEditor.get_Task(count);if
(engineEditTask.UniqueName == "ControlToolsEditing_CreateNewFeatureTask") m_engineEditor.CurrentTask = engineEditTask; }
Dim
engineEditTaskAs
IEngineEditTaskDim
countAs Integer For
count = 0To
m_engineEditor.TaskCount - 1Step
1 engineEditTask = m_engineEditor.Task(count)If
(engineEditTask.UniqueName = "ControlToolsEditing_CreateNewFeatureTask")Then
m_engineEditor.CurrentTask = engineEditTaskEnd If
Next