Releases all resources used by the DocumentViewer and delete the object.
public void Dispose()
Public Sub Dispose()
DocumentViewer implements the System.IDisposable interface, it is recommended that you follow the standard .NET dispose pattern when using the this class. For more information, refer to the System.IDisposable interface documentation in MSDN.
Disposing a document viewer will first clear the current document by using SetDocument(null), this will aborts all workers and wait for them to exit gracefully. Hence, a slight delay might happen when calling this method.
When the document viewer is disposed, it will also delete all the UI controls created and remove them from their parent containers.
For an example, refer to DocumentViewer.
Medical Web Viewer .NET
.NET, Java, Android, and iOS/macOS Assemblies
C API/C++ Class Libraries