GdPicture.NET Reference Guide
ReloadAnnotations Method (GdViewer)
Example 





GdPicture14.WPF Namespace > GdViewer Class : ReloadAnnotations Method
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 Redraw method to refresh the control for displaying all required changes.

Syntax
'Declaration
 
Public Sub ReloadAnnotations() 
public void ReloadAnnotations()
public procedure ReloadAnnotations(); 
public function ReloadAnnotations();
public: void ReloadAnnotations(); 
public:
void ReloadAnnotations(); 
Remarks
Just to remind you, that you need to call the Redraw method to display all required changes.

Please note that this method expects to have the GdPicture XMP/Annotations Plugin to be unlocked. 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
//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)
{
    GdViewer1.ReloadAnnotations();
    GdViewer1.Redraw();
}
See Also

Reference

GdViewer Class
GdViewer Members
Redraw Method
GetAnnotationCount Method
GetAnnotationManager Method