How to Hide Toolbar and Properties Pane in ASP.NET MVC DOCX Editor

27 Aug 20261 minute to read

Document Editor Container provides the main document view area along with the built-in toolbar and properties pane.

DOCX Editor provides just the main document view area. Here, the user can compose, view, and edit Word documents. You may prefer to use this component when you want to design your own UI options for your application.

Hide the properties pane

By default, the Document Editor Container has a built-in properties pane that contains options for formatting text, tables, images, headers, and footers. You can use the [showPropertiesPane] API in DocumentEditorContainer to hide the properties pane.

The following example code illustrates how to hide the properties pane.

@Html.EJS().DocumentEditorContainer("container").ShowPropertiesPane(false).EnableToolbar(true).Render()

Positioning and customizing the properties pane in Document Editor Container is not possible. Instead, you can hide the existing properties pane and create your own pane using public APIs.

Hide the toolbar

You can use the [enableToolbar] API in DocumentEditorContainer to hide the existing toolbar.

The following example code illustrates how to hide the existing toolbar.

@Html.EJS().DocumentEditorContainer("container").EnableToolbar(false).Render()

See Also