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


IEditEvents3.BeforeDrawSketch Event (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Editor > ESRI.ArcGIS.Editor > Interfaces > IE > IEditEvents3 Interface > IEditEvents3.BeforeDrawSketch Event
ArcGIS Developer Help

IEditEvents3.BeforeDrawSketch Event

Called before the edit sketch is drawn.

[Visual Basic .NET]
Public Event BeforeDrawSketch As BeforeDrawSketchEventHandler
[C#]
public event BeforeDrawSketchEventHandler BeforeDrawSketch

Product Availability

Available with ArcGIS Desktop.

Remarks

Listen for IEditEvents3::BeforeDrawSketch to intercept and handle sketch display properties before the edit sketch is drawn.

[C#]

private IEditEvents3_Event m_editEvents3;  

 

public void WireEditEvents3()
{
//Wire editevents3 to fire before draw Sketch happens
m_editEvents3 = (IEditEvents3_Event)m_editor;
m_editEvents3.BeforeDrawSketch += new IEditEvents3_BeforeDrawSketchEventHandler(
m_editEvents3_BeforeDrawSketch);
}

private void m_editEvents3_BeforeDrawSketch() 
{
//code to change sketch display before edit sketch is drawn.
}

See Also

IEditEvents3 Interface