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


IActiveView.Refresh Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > Carto > ESRI.ArcGIS.Carto > Interfaces > IA > IActiveView Interface > IActiveView.Refresh Method
ArcGIS Developer Help

IActiveView.Refresh Method

Causes the entire view to draw.

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

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

IActiveView::Refresh invalidates all of the caches.  This is a very inefficient operation; typically data from just one source has to be reread from the database and the rest can be drawn from cache.  IActiveView::PartialRefresh uses it's knowledge of the cache layout to invalidate as little as possible and should be used whenever possible.

See Also

IActiveView Interface | IActiveView.Refresh Method | esriViewDrawPhase Constants | IActiveView.ScreenCacheID Property | IActiveView.PartialRefresh Method | IScreenDisplay.Invalidate Method

.NET Samples

Custom UI elements using add-ins Make a custom time slider Copy the PageLayoutControl focus map and overwrite the MapControl map Schematic diagram auto refresh Implementing a schematic digitizing tool StreetMap routing