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

DxRichEdit.ViewType Property

Specifies a document view layout type.

Namespace: DevExpress.Blazor.RichEdit

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

NuGet Package: DevExpress.Blazor.RichEdit

#Declaration

C#
[Parameter]
public ViewType ViewType { get; set; }

#Property Value

Type Description
ViewType

The document view type.

Available values:

Name Description
Simple

Simple layout mode. The control displays document as a website and ignores the page layout.

PrintLayout

Print layout mode. The control displays pages with applied format settings.

#Remarks

The RichEdit can adjust a document so that it occupies the entire control’s content area and ignore the page’s layout. Set the ViewType property to Simple to enable this mode.

Razor
<DxRichEdit @bind-DocumentContent="@DocumentContent" ViewType="ViewType.Simple" BarMode=BarMode.Toolbar CssClass="w-100 ch-720" />

Simple View

Run Demo: RichEdit – Simple View

You can handle the ViewTypeChanged event to be notified when the view type changes.

See Also