ArcObjects Library Reference (Editor)  

IEditEvents3.BeforeDrawSketch Event

Called before the edit sketch is drawn.

[Visual Basic 6.0]
Event BeforeDrawSketch(
    ByVal pDpy As IDisplay _
)
[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