GdPicture.NET.14
GdPicture14 Namespace / GdViewer Class / Dispose() Method
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 Shadows Sub Dispose() 
public new void Dispose()
public procedure Dispose(); 
public hide function Dispose();
public: new void Dispose(); 
public:
new void Dispose(); 
Remarks
Please find our Document Viewer Sample here 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