Back to Devexpress

PrintingSettingsBuilder.Mode(PrintMode) Method

aspnetcore-devexpress-dot-aspnetcore-dot-richedit-dot-printingsettingsbuilder-dot-mode-x28-devexpress-dot-aspnetcore-dot-richedit-dot-printmode-x29.md

latest1.8 KB
Original Source

PrintingSettingsBuilder.Mode(PrintMode) Method

Specifies the print mode.

Namespace : DevExpress.AspNetCore.RichEdit

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

NuGet Package : DevExpress.AspNetCore.RichEdit

Declaration

csharp
public PrintingSettingsBuilder Mode(
    PrintMode mode
)

Parameters

NameTypeDescription
modePrintMode

The print mode.

|

Returns

TypeDescription
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.

  • Razor C#

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

Print a Document

PrintingSettingsBuilder Class

PrintingSettingsBuilder Members

DevExpress.AspNetCore.RichEdit Namespace