ImageViewerCreateOptions Object

Summary

Options for creating an ImageViewer

Syntax
TypeScript
JavaScript
function lt.Controls.ImageViewerCreateOptions 
class lt.Controls.ImageViewerCreateOptions() 
Remarks

ImageViewerCreateOptions is used as a parameter to the ImageViewer() constructor and is used to specify the required and optional parameters used to create and customize the viewer.

ImageViewerCreateOptions contains the following:

Property Description
ParentDiv
An existing div in the HTML page that will act as the parent (container) of the viewer. This property is required and must contain a valid div element in your HTML page.
ParentDivClass
CSS class name to apply to the parent div of this image viewer.
ViewLayout
Default view layout. If this value null, then the viewer will create an instance of ImageViewerSingleViewLayout, adds an empty item to it and sets it in the ViewLayout property.
UseElements
Use real HTML5 elements to render the viewer and its items, or render the images directly into the canvas.
ElementsModeOptions
Elements mode-specific settings to use when creating an ImageViewer.

Example

For an example, refer to ImageViewer.

Requirements
Target Platforms
Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.