ArcObjects Library Reference (PublisherControls)  

IARMap.Refresh Method

Redraws the map display area.

[Visual Basic .NET]
Public Sub Refresh ( _
    [ByVal refreshNow As Boolean] _
)
[C#]
public void Refresh (
    bool refreshNow
);
[C#]

Optional Values

refreshNow   Supply false as a default value.

Product Availability

Available with ArcGIS Desktop. Requires Publisher Extension.

Description

The Refresh method causes screen display area of the ARMap to be completely redrawn by sending a windows paint event. Use the Refresh method to ensure the ARMap is displaying the current state of the data. For example, if data is in an SDE server with many users editing the data, refreshing the ARMap ensures the user of a ArcReaderControl application sees any new edits.

Specify whether to immediately redraw the ARMap or whether to queue up the redraw to happen at some point in the immediate future. For example, if there are many extent changes, but only the last extent needs displaying to the user pass False to the Refresh method. The paint event will be queued and the ARMap will be redrawn once after the last extent change. However, if every extent change needs displaying to the user, pass True to the Refresh method. The ARMap will be redrawn after every extent change. Likewise pass True after an extent change, but before flashing or flickering an ARFeature

Remarks

The Refresh method triggers the following events:

OnBeforeScreenDraw
OnAfterScreenDraw

See Also

IARMap Interface