Skip to main content

HtmlEditorExtension.GetHtml(String, ASPxHtmlEditorHtmlEditingSettings, HtmlEditorValidationSettings, EventHandler<HtmlEditorValidationEventArgs>, EventHandler<HtmlCorrectingEventArgs>, out Boolean) Method

Returns the HTML markup specifying a specific HtmlEditor’s content, updated based on the specified parameters.

Namespace: DevExpress.Web.Mvc

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

Declaration

public static string GetHtml(
    string name,
    ASPxHtmlEditorHtmlEditingSettings htmlEditingSettings,
    HtmlEditorValidationSettings validationSettings,
    EventHandler<HtmlEditorValidationEventArgs> validationDelegate,
    EventHandler<HtmlCorrectingEventArgs> htmlCorrectionDelegate,
    out bool isValid
)

Parameters

Name Type Description
name String

A string value that specifies the HtmlEditor’s name (SettingsBase.Name).

htmlEditingSettings ASPxHtmlEditorHtmlEditingSettings

A ASPxHtmlEditorHtmlEditingSettings object that contains settings related to the specified editor’s HTML editing functionality.

validationSettings HtmlEditorValidationSettings

A HtmlEditorValidationSettings object containing the settings that relate to editor content validation.

validationDelegate EventHandler<HtmlEditorValidationEventArgs>

A delegate method that implements custom validation logic.

htmlCorrectionDelegate EventHandler<HtmlCorrectingEventArgs>

A delegate method that implements custom check or transformation of the editor’s HTML code.

isValid Boolean

true, if the editor content is valid; otherwise, false.

Returns

Type Description
String

A string value specifying the editor’s HTML markup.

See Also