ArcObjects Library Reference (Editor)  

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 | IEditTask.Name Property | Editor Class | ISnapEnvironment Interface | IEditEvents2 Interface | IEditTask.Deactivate Method | IEditAttributeProperties Interface | IEditor Interface | IEditSketch Interface | IEditTask.OnFinishSketch Method | IEditProperties Interface | IEditLayers Interface | IEditTask.Activate Method | IEditTask.OnDeleteSketch Method | IEditEvents Interface | IExtension Interface