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


IEngineEditSketch.RefreshSketch Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Controls > ESRI ArcGIS Controls > Interfaces > IE > IEngineEditSketch Interface > IEngineEditSketch.RefreshSketch Method
ArcGIS Developer Help

IEngineEditSketch.RefreshSketch Method

Invalidates the portion of the display that is occupied by the sketch.

[Visual Basic .NET]
Public Sub RefreshSketch ( _
)
[C#]
public void RefreshSketch (
);
[C++]
HRESULT RefreshSketch(
void
);

Product Availability

Available with ArcGIS Engine.

Description

Call RefreshSketch to invalidate the portion of the display that is occupied by the sketch. Sometimes, however, it may be necessary to invalidate a larger portion of the display in order to get rid of unwanted artifacts. This situation can arise when you shorten the length of a segment since old data may still be erroneously displayed outside of the new sketch geometry.

Remarks

This method fires the IEngineEditEvents::OnAfterDrawSketch event.

See Also

IEngineEditSketch Interface

.NET Samples

Custom reshape polyline edit task