# Class: DisplayModeManager

## Core. DisplayModeManager

Represents an object that manages the display modes used by DocumentViewer

#### new DisplayModeManager(docViewer)

  Creates a new instance of DisplayModeManager

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `docViewer` | object | The DocumentViewer instance

### Methods

#### disableVirtualDisplayMode()

  Disable virtual display mode and switch to non-virtual display mode.

#### getDisplayMode()

  Returns the current display mode.

  ##### Returns:

  The current display mode.

#### isVirtualDisplayEnabled()

  Check if virtual display mode for pages is enabled

#### setDisplayMode(displayMode)

  Sets the display mode. Also removes selection caused by text selection or search. Only renders if a document has been loaded.

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `displayMode` | object | The display mode object to set as the current display mode

#### Search results