RichEditExtension.Open(String, Func<Byte[]>) Method

Opens a document specified by an array of bytes.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v20.2.dll


public RichEditExtension Open(
    string uniqueDocumentID,
    Func<byte[]> contentAccessorByByte
Public Function Open(
    uniqueDocumentID As String,
    contentAccessorByByte As Func(Of Byte())
) As RichEditExtension


Name Type Description
uniqueDocumentID String

A string value that uniquely identifies the document to open.

contentAccessorByByte Func<Byte[]>

A method delegate to obtain a byte array from which to open the document.


Type Description

A RichEditExtension object representing the RichEdit extension.



This overload of the RichEditExtension.Open method 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.

This method tries to find the specified document in a list of already opened documents maintained by the DocumentManager. If the document is found, its instance is opened within the RichEdit. If the specified document has not been found in the opened documents, a delegate method specified by the contentAccessorByByte parameter is called. It allows you to manually obtain a byte array from which to open a document.

See Also