This document is archived and information here might be outdated. Recommended version. |
ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditSketchExtension2 Interface > IEditSketchExtension2.Activate Method (ArcObjects .NET 10.4 SDK) |
Called when the sketch extension is about to be used.
[Visual Basic .NET] Public Sub Activate ( _ ByVal Editor As IEditor _ )
[C#] public void Activate ( IEditor Editor );
The ::Activate() method is called by the controller when the EditSktechExtension has been applied and is being initiated for use.
This method is called only if ::Applies() returns VARIANT_TRUE.
Use this method to obtain a reference to the controller (Editor).
public void Activate(IEditor Editor)
{
m_editor=Editor;
}
Public Sub Activate(ByVal Editor As IEditor) m_editor=Editor End Sub
IEditSketchExtension2 Interface | IDatasetEdit Interface | IDatasetEditInfo Interface | IEditSketch Interface | IEditTask.Activate Method | IEditor Interface | IEditTask.Deactivate Method | ISnapEnvironment Interface | IEditEvents2 Interface | IEditLayers Interface | IEditEvents Interface | IEditTask.Name Property | Editor Class | Editor Library | IEditTask.OnFinishSketch Method | IEditAttributeProperties Interface | IEditTask.OnDeleteSketch Method | IEditProperties Interface | IExtension Interface