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.PrintLayoutView(Action<PrintLayoutViewSettingsBuilder>) Method

Specifies the Print Layout view mode’s settings.

Namespace: DevExpress.AspNetCore.RichEdit

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

NuGet Package: DevExpress.AspNetCore.RichEdit

#Declaration

C#
public ViewsSettingsBuilder PrintLayoutView(
    Action<PrintLayoutViewSettingsBuilder> configure
)

#Parameters

Name Type Description
configure Action<PrintLayoutViewSettingsBuilder>

A method that configures the Print Layout view mode settings.

#Returns

Type Description
ViewsSettingsBuilder

A builder for Rich Text Editor’s view settings.

#Remarks

Call the ViewType(ViewType) method with the PrintLayout parameter to set the Rich Text Editor view mode to the Print Layout.

@(Html.DevExpress().RichEdit("richEdit")
    .Views( v => v
        .ViewType(ViewType.PrintLayout)
        .PrintLayoutView(plv => plv.ShowHorizontalRuler(false))
       )
    )
)

You can use the printLayoutViewSettings property to specify the Print Layout view mode’s settings on the client.

See Also