Back to Devexpress

DxRichEdit.ViewType Property

blazor-devexpress-dot-blazor-dot-richedit-dot-dxrichedit-0e79f24c.md

latest1.6 KB
Original Source

DxRichEdit.ViewType Property

Specifies a document view layout type.

Namespace : DevExpress.Blazor.RichEdit

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

NuGet Package : DevExpress.Blazor.RichEdit

Declaration

csharp
[Parameter]
public ViewType ViewType { get; set; }

Property Value

TypeDescription
ViewType

The document view type.

|

Available values:

NameDescription
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 ViewType="ViewType.Simple"
            BarMode=BarMode.Toolbar />

Run Demo: RichEdit – Simple View

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

See Also

DxRichEdit Class

DxRichEdit Members

DevExpress.Blazor.RichEdit Namespace