This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditTask Interface > IEngineEditTask.Activate Method (ArcObjects .NET 10.4 SDK) |
Notifies the task that the edit sketch is activated.
[Visual Basic .NET] Public Sub Activate ( _ ByVal editor As IEngineEditor, _ ByVal oldTask As IEngineEditTask _ )
[C#] public void Activate ( IEngineEditor editor, IEngineEditTask oldTask );
[C++]
HRESULT Activate(
IEngineEditor* editor,
IEngineEditTask* oldTask
);
[C++]
Parameters editor [in]
editor is a parameter of type IEngineEditor oldTask [in]
oldTask is a parameter of type IEngineEditTask
Activate is called when the edit task is set as the current edit task either programmatically using the IEngineEditor::CurrentTask property, or interactively by the end user selecting the edit task using the ControlsEditingTaskToolControl
Use the Activate method to reference the EngineEditor object and modify the editing environment before an edit sketch is started. For example, use the IEngineEditSketch::GeometryType property to ensure the geometry sketch is a polyline regardless of the IEngineEditLayers::CurrentLayer geometry type.