aspnetcore-js-devexpress-dot-richedit-898bc387.md
Declares the Rich Text Editor’s view settings.
export interface IViewSettings
Specifies whether users can zoom the document.
allowZoom?: boolean
| Type | Description |
|---|---|
| boolean |
true if users can zoom the document; otherwise, false.
|
Contains the Print Layout view mode’s settings.
printLayoutViewSettings?: IPrintLayoutViewSettings
| Type | Description |
|---|---|
| IPrintLayoutViewSettings |
An interface that declares the settings.
|
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.
Provides access to the Simple view mode’s settings.
simpleViewSettings?: ISimpleViewSettings
| Type | Description |
|---|---|
| ISimpleViewSettings |
An interface that declares the Simple view mode’s settings.
|
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).
Specifies a document view layout type.
viewType?: ViewType
| Type | Description |
|---|---|
| ViewType |
The document view type.
|
If the viewType property is set to Simple, use the simpleViewSettings property to customize the the Simple view mode’s settings.
Specifies the document’s zoom level.
zoomLevel?: number
| Type | Description |
|---|---|
| number |
The zoom level as a percentage in the range from 0.5 to 2.0.
|