Skip to main content

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

Opens a document from an array of bytes.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public RichEditExtension Open(
    string uniqueDocumentID,
    Func<byte[]> contentAccessorByByte
)

Parameters

Name Type Description
uniqueDocumentID String

The document identifier.

contentAccessorByByte Func<Byte[]>

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

Returns

Type Description
RichEditExtension

An object representing the RichEdit extension.

Remarks

Call this Open method to load a document from an array of bytes. Specify the documentId parameter to identify the document. If the specified value is not unique within all open documents, the method activates the previously loaded document with the same documentId and ignores the array of bytes.

This overload of the Open method determines a document’s format automatically, however this process reduces the method’s performance. Use the Open(String, DocumentFormat, Func<Byte[]>) overload to improve the method performance.

See Also