HtmlEditorExtension.GetHtml(String, ASPxHtmlEditorHtmlEditingSettings, HtmlEditorValidationSettings, EventHandler<HtmlEditorValidationEventArgs>, out Boolean) Method
Returns the HTML markup specifying a specific HtmlEditor’s content, validated based on the passed editing settings, validation settings and custom validation logic; and indicates whether the editor content is valid.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
public static string GetHtml(
string name,
ASPxHtmlEditorHtmlEditingSettings htmlEditingSettings,
HtmlEditorValidationSettings validationSettings,
EventHandler<HtmlEditorValidationEventArgs> validationDelegate,
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. |
isValid | Boolean | true if the editor content is valid; otherwise, false. |
Returns
Type | Description |
---|---|
String | A string value specifying the editor’s HTML markup. |