The requested page is not available for the requested platform. You are viewing the content for Default platform.

PastedImageSavingEventArgs.TagName Property

Gets or sets the root HTML element of the resulting HTML element.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v19.2.dll

Declaration

public string TagName { get; set; }
Public Property TagName As String

Property Value

Type Description
String

A string value specifying the HTML element tag.

Remarks

The following example illustrates how to use the ASPxHtmlEditor.PastedImageSaving event and the TagName property to process the pasted binary image and change its render result.


protected void ASPxHtmlEditor1_PastedImageSaving(object source, PastedImageSavingEventArgs e) {
    if (!e.IsValid) {
        e.TagName = "DIV";
        e.InnerHTML = "<img src='broken-image.png' />";
        e.SetStyleAttribute("border", "1px dotted #f00");
    }
}
See Also