Example





In This Topic

Dispose() Method

In This Topic
Disposes already used GdViewer object completely. All related resources used by this object are released.

This method implicitly calls the CloseDocument method.

Syntax
'Declaration
 
Public Sub Dispose() 
public void Dispose()
public procedure Dispose(); 
public function Dispose();
public: void Dispose(); 
public:
void Dispose(); 
Remarks
Please try the Document Viewer Sample in your [INSTALLATION FOLDER]/Samples/WPF folder to fully see, how to create, integrate and use the GdViewer control in your application.
Example
How to simply dispose of the GdViewer instance.
Dim GdViewer1 As GdViewer = New GdViewer()
            
'Use the GdViewer1 here.
GdViewer1.DisplayFromFile("")
'Do your stuff here.
            
GdViewer1.Dispose()
GdViewer GdViewer1 = new GdViewer();
            
//Use the GdViewer1 here.
GdViewer1.DisplayFromFile("");
//Do your stuff here.
            
GdViewer1.Dispose();
See Also