Options to use when creating new DocumentViewer objects.
function lt.Documents.UI.DocumentViewerCreateOptions
class lt.Documents.UI.DocumentViewerCreateOptions()
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). |
For an example, refer to DocumentViewer.