HtmlEditorExtension.Import(HtmlEditorImportFormat, Stream, Boolean, Action<String, IEnumerable<String>>) Method
Imports the editor content from a specific stream, based on the provided settings.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v25.2.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public static void Import(
HtmlEditorImportFormat format,
Stream inputStream,
bool useInlineStyles,
Action<string, IEnumerable<string>> onImport
)
Parameters
| Name | Type | Description |
|---|---|---|
| format | HtmlEditorImportFormat | One of the HtmlEditorImportFormat enumeration values specifying the imported file format. |
| inputStream | Stream | A Stream object from which the editor content is imported. |
| useInlineStyles | Boolean | true to embed document formatting styles into the editor content; false to store formatting styles in a separate css file. |
| onImport | Action<String, IEnumerable<String>> | A delegate method to execute after importing the document. |
See Also