Error processing SSI file
LEADTOOLS Leadtools.Documents.UI (Leadtools.Documents.UI assembly)

Show in webframe

Dispose() Method






Releases all resources used by the DocumentViewer and delete the object.
Syntax
public void Dispose()
'Declaration
 
Public Overloads Sub Dispose() 
'Usage
 
Dim instance As DocumentViewer
 
instance.Dispose()
public:
void Dispose(); 
Remarks

DocumentViewer implements the IDisposable interface, it is recommended that you follow the standard .NET dispose pattern when using the this class. For more information, refer to the IDisposable interface documentation in MSDN.

When the DocumentViewer is disposed, it will call the dispose methods of all its parts (View, Thumbnails, Bookmarks, Text and Annotations).

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.

Example

For an example, refer to DocumentViewer.

Requirements

Target Platforms

See Also

Reference

DocumentViewer Class
DocumentViewer Members
Overload List

Error processing SSI file
Leadtools.Documents.UI requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features