ArcObjects Library Reference (Editor)  

IEditSketch.RefreshSketch Method

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

[Visual Basic .NET]
Public Sub RefreshSketch ( _
public void RefreshSketch (

Product Availability

Available with ArcGIS Desktop.


Refreshes only the portion of the screen falling within the edit sketch's slightly expanded envelope (IGeometry::Envelope).


Sometimes 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 for example. Since the new geometry is shorter and calling RefreshSketch only refreshes the area within the envelope of the geometry, old data may still be erroneously displayed outside of this boundary. See the documentation for the InvalidArea object for more details.

See Also

IEditSketch Interface