Class CoreControls.DisplayModeManager
Represents an object that manages the display modes used by DocumentViewer
Constructor Attributes | Constructor Name and Description |
---|---|
CoreControls.DisplayModeManager(docViewer)
Creates a new instance of DisplayModeManager
|
Method Attributes | Method Name and Description |
---|---|
Returns the current display mode.
|
|
SetDisplayMode(displayMode)
Sets the display mode.
|
Class Detail
CoreControls.DisplayModeManager(docViewer)
Creates a new instance of DisplayModeManager
- Parameters:
- {object} docViewer
- The DocumentViewer instance
Method Detail
GetDisplayMode()
Returns the current display mode.
- Returns:
- The current display mode.
SetDisplayMode(displayMode)
Sets the display mode. Also removes selection caused by text selection or search.
Only renders if a document has been loaded.
- Parameters:
- {object} displayMode
- The display mode object to set as the current display mode