DocumentViewerCreateOptions Object

Summary

Options to use when creating new DocumentViewer objects.

Syntax
TypeScript
JavaScript
function lt.Document.Viewer.DocumentViewerCreateOptions 
class lt.Document.Viewer.DocumentViewerCreateOptions() 

Remarks

Used by the CreateDocumentViewer method to create new DocumentViewer instances.

This class contains the following members:

Member Description
ViewContainer
Must be set to an existing control in your application. This is not optional and cannot be null. View will create ImageViewer and adds it as a child to this container.
ThumbnailsContainer
Optional and can be null, otherwise, must be set to an existing control in your application and Thumbnails will create ImageViewer and adds it as a child to this container.
BookmarksContainer
Optional and can be null, otherwise, must be set to an existing control in your application and Bookmarks will create TreeView and adds it as a child to this container.
UseAnnotations
Optional, when set to true, annotation support will be enabled in the document viewer and the annotations toolbar and objects list will be created when a document is set in the viewer. If false, annotations support is disabled in the document viewer.
ViewCreateOptions
This is set to a new instance of ImageViewerCreateOptions object that will be used to create the ImageViewer used with View. Use can set values in this option to override the default behavior if needed. For example, set turn on UseElements off (from the default value of true).
ThumbnailsCreateOptions
This is set to a new instance of ImageViewerCreateOptions object that will be used to create the ImageViewer used with Thumbnails. Use can set values in this option to override the default behavior if needed. For example, set turn on UseElements off (from the default value of true).

Example

For an example, refer to DocumentViewer.

Requirements

Target Platforms

Help Version 20.0.2019.3.11
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Document.Viewer Assembly