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

.NET Snippets

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

.NET Samples

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

.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 |