GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / ReloadAnnotations Method
Example





ReloadAnnotations Method (GdViewer)
Forces the control to reload all GdPicture/XMP annotations contained within the currently displayed page of the document loaded in the GdViewer control.

We recommend to only use this method if the currently displayed document has been edited by another object. Afterwards, you need to call the GdViewer.Redraw method to refresh the control for displaying all required changes.

Syntax
'Declaration
 
Public Sub ReloadAnnotations() 
 
Remarks
Just to remind you, that you need to call the GdViewer.Redraw method to display all required changes.

The method only handles GdPicture/XMP annotations as well.

Example
How to properly reload displayed annotations.
'We assume that the GdViewer1 control has been properly integrated
'and your document has been properly displayed as well.
            
'If the displayed document has been changed from another object, you should call:
If (GdViewer1.GetAnnotationCount() > 0) Then
    GdViewer1.ReloadAnnotations()
    GdViewer1.Redraw()
End If
See Also