Back to Devexpress

IViewSettings Interface

aspnetcore-js-devexpress-dot-richedit-898bc387.md

latest3.3 KB
Original Source

IViewSettings Interface

Declares the Rich Text Editor’s view settings.

Declaration

ts
export interface IViewSettings

Properties

allowZoom Property

Specifies whether users can zoom the document.

Declaration

ts
allowZoom?: boolean

Property Value

TypeDescription
boolean

true if users can zoom the document; otherwise, false.

|

printLayoutViewSettings Property

Contains the Print Layout view mode’s settings.

Declaration

ts
printLayoutViewSettings?: IPrintLayoutViewSettings

Property Value

TypeDescription
IPrintLayoutViewSettings

An interface that declares the settings.

|

Remarks

javascript
options.view.printLayoutViewSettings.showHorizontalRuler = false;

You can use the PrintLayoutView(Action<PrintLayoutViewSettingsBuilder>) method to specify the Print Layout view mode’s settings on the server.

simpleViewSettings Property

Provides access to the Simple view mode’s settings.

Declaration

ts
simpleViewSettings?: ISimpleViewSettings

Property Value

TypeDescription
ISimpleViewSettings

An interface that declares the Simple view mode’s settings.

|

Remarks

Set the viewType property to Simple to enable the Simple view mode.

javascript
options.view.viewType = DevExpress.RichEdit.ViewType.Simple;
options.view.simpleViewSettings.fixedWidth = 300;
options.view.simpleViewSettings.paddings = {top: 40, right: 40, bottom: 40, left: 40};

Alternatively, you can specify the Simple view mode’s settings on the server (SimpleView(Action<SimpleViewSettingsBuilder>)) or use the client RichEdit object (simpleViewSettings).

Run Demo: Simple View

viewType Property

Specifies a document view layout type.

Declaration

ts
viewType?: ViewType

Property Value

TypeDescription
ViewType

The document view type.

|

Remarks

If the viewType property is set to Simple, use the simpleViewSettings property to customize the the Simple view mode’s settings.

zoomLevel Property

Specifies the document’s zoom level.

Declaration

ts
zoomLevel?: number

Property Value

TypeDescription
number

The zoom level as a percentage in the range from 0.5 to 2.0.

|