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.ScreenCacheID Property | esriViewDrawPhase Constants | IActiveView.Refresh Method | IActiveView.PartialRefresh Method | IScreenDisplay.Invalidate Method

.NET Snippets

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

.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