This document is archived and information here might be outdated.  Recommended version.


IEditSketchExtension.Activate Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditSketchExtension Interface > IEditSketchExtension.Activate Method
ArcGIS Developer Help

IEditSketchExtension.Activate Method

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
);

Product Availability

Available with ArcGIS Desktop.

Remarks

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).

[C#]
public void Activate(IEditor Editor)
{
  m_editor = Editor;
}
[Visual Basic .NET]
Public  Sub Activate(ByVal Editor As IEditor)
  m_editor = Editor
End Sub

See Also

IEditSketchExtension 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 | IEditSketchExtension2 Interface