Skip to main content
All docs
V26.1
  • IViewSettings Interface

    Declares the Rich Text Editor’s view settings.

    Declaration

    export interface IViewSettings

    Properties

    allowZoom Property

    Specifies whether users can zoom the document.

    Declaration

    allowZoom?: boolean

    Property Value

    Type Description
    boolean

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

    printLayoutViewSettings Property

    Contains the Print Layout view mode’s settings.

    Declaration

    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

    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

    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.

    zoomLevel Property

    Specifies the document’s zoom level.

    Declaration

    zoomLevel?: number

    Property Value

    Type Description
    number

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