How to Change Document View in ASP.NET Core DOCX Editor

14 Aug 20261 minute to read

How to change the document view in DocumentEditor component

ASP.NET Core DOCX Editor (Document Editor) allows you to switch the document view between page layout (Pages) and continuous web layout (Continuous) using the layoutType property with the supported LayoutType values.

<ejs-documenteditor id="container" layoutType="Continuous"></ejs-documenteditor>
public ActionResult Default()
{
    return View();
}

Default value of layoutType in DocumentEditor and DocumentEditorContainer components is Pages.

How to change the document view in DocumentEditorContainer component

DocumentEditorContainer component allows you to switch the document view between page layout (Pages) and continuous web layout (Continuous) using the layoutType property with the supported LayoutType values.

<ejs-documenteditorcontainer id="container" layoutType="Continuous"></ejs-documenteditorcontainer>
public ActionResult Default()
{
    return View();
}

Default value of layoutType in DocumentEditorContainer component is Pages.