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
[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.
<DxRichEdit @bind-DocumentContent="@DocumentContent" ViewType="ViewType.Simple" BarMode=BarMode.Toolbar CssClass="w-100 ch-720" />
You can handle the ViewTypeChanged event to be notified when the view type changes.
See Also