Skip to main content
A newer version of this page is available. .

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; }

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