Skip to main content

ViewsSettingsBuilder.SimpleView(Action<SimpleViewSettingsBuilder>) Method

Specifies the Simple view mode’s settings.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v24.2.dll

Declaration

public ViewsSettingsBuilder SimpleView(
    Action<SimpleViewSettingsBuilder> configure
)

Parameters

Name Type Description
configure Action<SimpleViewSettingsBuilder>

A method that configure the Simple view mode settings.

Returns

Type Description
ViewsSettingsBuilder

An object that can be used to further configure view settings.

Remarks

Call the ViewType(ViewType) method with the Simple parameter to enable the Simple view mode. In this mode, the control does not split a document into pages and ignores headers, footers, and page layout settings: margins, orientation, size, columns, and breaks.

@(Html.DevExpress().RichEdit("richEdit")
    .Views( v => v
        .ViewType(ViewType.Simple)
        .SimpleView( sv => sv.FixedWidth(300)
            .Paddings(p => p
                .Left(40)
                .Right(40)
                .Top(40)
                .Bottom(40)
            )
        )
    )
)

Alternatively, you can specify the Simple view mode’s settings on the client (simpleViewSettings) or using the Options object (simpleViewSettings).

Run Demo: Simple View

See Also