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





In This Topic
ReloadAnnotations Method (GdViewer)
In This Topic
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.

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