ViewsSettingsBuilder.SimpleView(Action<SimpleViewSettingsBuilder>) Method

Specifies the Simple view mode’s settings.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v21.1.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.

@(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