SimpleViewSettingsBuilder.FixedWidth(Nullable<Int32>) Method

Specifies the width of the Rich Edit content in the Simple view mode.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v21.1.dll

Declaration

public SimpleViewSettingsBuilder FixedWidth(
    int? value
)

Parameters

Name Type Description
value Nullable<Int32>

The width, in pixels.

Returns

Type Description
SimpleViewSettingsBuilder

An object that can be used to further configure settings of the Simple view mode.

Remarks

@(Html.DevExpress().RichEdit("richEdit")
    .Height(600)
    .Views(view => view
       .ViewType(ViewType.Simple)
       .SimpleView(simpleView => simpleView
          .FixedWidth(400)
          .Paddings(paddings => paddings
            .Left(60)
            .Right(40))))
    .ConfirmOnLosingChanges(c => c.Enabled(false))
    .Open("Documents/Example.docx")
)

The image below shows the result.

RichEdit - Fixed Width

See Also