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

ViewsSettingsBuilder.SimpleView(Action<SimpleViewSettingsBuilder>) Method

Specifies the Simple view mode’s settings.

Namespace: DevExpress.AspNetCore.RichEdit

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

NuGet Package: DevExpress.AspNetCore.RichEdit

#Declaration

C#
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