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


IActiveView.Refresh Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (Carto)  

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 Snippets

Delete Graphics Refresh ActiveView | Zoom by Ratio and Recenter | Zoom by Ratio | Zoom to Layer by Index Number | Clear NAClass | Zoom to Active Layer in TOC | Clear Active Analysis Layer

.NET Samples

Make a custom time slider (Code Files: CustomTimeSliderButton) | Custom UI elements using add-ins (Code Files: ZoomToLayerButton) | Implementing a schematic digitizing tool (Code Files: DigitTool) | Copy the PageLayoutControl focus map and overwrite the MapControl map (Code Files: CopyFocusMap) | StreetMap routing (Code Files: RoutingForm) | Create a command by inheriting from BaseCommand (Code Files: ZoomToLayer) | Schematic diagram auto refresh (Code Files: FormAutorefresh)

.NET Related Topics

Converting labels to geodatabase annotation for a single layer | Converting labels to geodatabase annotation for an entire map | Converting labels to map annotation for a single layer | Create a command by inheriting from BaseCommand | How to add display caching | How to create AOIs and bookmarks | How to create dynamic menu commands using a MultiItem | Working with PageLayout elements