Skip to main content

RichEditExtension.Open(String, DocumentFormat, Func<Stream>) Method

Opens a document in the specified format from a stream.

Namespace: DevExpress.Web.Mvc

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

NuGet Package: DevExpress.Web.Mvc5

Declaration

public RichEditExtension Open(
    string uniqueDocumentID,
    DocumentFormat format,
    Func<Stream> contentAccessorByStream
)

Parameters

Name Type Description
uniqueDocumentID String

The document identifier.

format DocumentFormat

The document format.

contentAccessorByStream Func<Stream>

A method delegate to obtain a stream 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 a stream. Specify the uniqueDocumentID 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 uniqueDocumentID and ignores the stream data.

See Also