blazor-devexpress-dot-blazor-dot-richedit-dot-dxrichedit-0e79f24c.md
Specifies a document view layout type.
Namespace : DevExpress.Blazor.RichEdit
Assembly : DevExpress.Blazor.RichEdit.v25.2.dll
NuGet Package : DevExpress.Blazor.RichEdit
[Parameter]
public ViewType ViewType { get; set; }
| 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.
|
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.
<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