JS

RichEditBuilder.Open(String) Method

Opens a document by the specified path.

Namespace: DevExpress.AspNetCore.RichEdit

Assembly: DevExpress.AspNetCore.RichEdit.v20.1.dll

Declaration

public RichEditBuilder Open(
    string filePath
)

Parameters

Name Type Description
filePath String

A string value specifying the path to the document to open.

Returns

Type Description
RichEditBuilder

A RichEditBuilder that can be used to further configure the Rich Text Editor.

Remarks

NOTE

This overload determines a document's format automatically, but this process reduces the method's performance. You can accelerate the method's performance by specifying a document's format manually using the overload with the DocumentFormat parameter.

@(Html.DevExpress().RichEdit("DemoRichEdit")
   .Height(600)
   .ConfirmOnLosingChanges(c => c.Enabled(false))
   .Open("Documents/Example.docx")
)

For a full example, see ASP.NET Core Rich Text Editor - Overview demo.

See Also