Skip to main content

PrintingSettingsBuilder.Mode(PrintMode) Method

Specifies the print mode.

Namespace: DevExpress.AspNetCore.RichEdit

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

NuGet Package: DevExpress.AspNetCore.RichEdit

Declaration

public PrintingSettingsBuilder Mode(
    PrintMode mode
)

Parameters

Name Type Description
mode PrintMode

The print mode.

Returns

Type Description
PrintingSettingsBuilder

A builder that can be used to further configure the printing settings.

Remarks

The Mode method specifies the mode used to print a document in the following cases:

  • when a user clicks the Print ribbon button;
  • when the printDocument method is called without a parameter.
@(Html.DevExpress().RichEdit("richEdit")
    .Printing(p => p.Mode(PrintMode.Pdf))

Use the printMode property to specify the print mode on the client side.

See Also