Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

IViewSettings Interface

Declares the Rich Text Editor’s view settings.

#Declaration

TypeScript
export interface IViewSettings

#Properties

#printLayoutViewSettings Property

Contains the Print Layout view mode’s settings.

#Declaration

TypeScript
printLayoutViewSettings?: IPrintLayoutViewSettings

#Property Value

Type Description
IPrintLayoutViewSettings

An interface that declares the settings.

#Remarks

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

TypeScript
simpleViewSettings?: ISimpleViewSettings

#Property Value

Type Description
ISimpleViewSettings

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

#Remarks

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

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

TypeScript
viewType?: ViewType

#Property Value

Type Description
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.