new DisplayModeManager(docViewer)
Creates a new instance of DisplayModeManager
Parameters:
| Name | Type | Description |
|---|---|---|
docViewer |
Core.DocumentViewer | The DocumentViewer instance |
Methods
-
disableVirtualDisplayMode()
-
Disable virtual display mode and switch to non-virtual display mode. This only takes effect after loading a new document (Not on the fly)
-
enableVirtualDisplayMode()
-
Enable virtual display mode and switch to virtual display mode. This only takes effect after loading a new document (Not on the fly)
-
getDisplayMode()
-
Returns the current display mode
Returns:
The current display mode- Type
- Core.DisplayMode
-
isVirtualDisplayEnabled()
-
Check if virtual display mode for pages is enabled
Returns:
True if virtual display mode is enabled- Type
- boolean
-
setDisplayMode(displayMode)
-
Sets the display mode and removes selection caused by text selection or search Only renders if a document has been loaded
Parameters:
Name Type Description displayModeCore.DisplayMode The display mode object to set as the current display mode