aspnet-devexpress-dot-web-dot-aspxhtmleditor-c22084ab.md
A default toolbar button that allows the previous action performed within the design view area to be canceled.
Namespace : DevExpress.Web.ASPxHtmlEditor
Assembly : DevExpress.Web.ASPxHtmlEditor.v25.2.dll
NuGet Package : DevExpress.Web
public class ToolbarUndoButton :
HtmlEditorToolbarItem
Public Class ToolbarUndoButton
Inherits HtmlEditorToolbarItem
The ASPxHtmlEditor keeps track of all user actions, and allows you to undo or repeat them by using the Undo and Redo buttons ( ToolbarUndoButton and ToolbarRedoButton).
You can add the Undo button to toolbars by using either the ASPxHtmlEditor designer at design time, or programmatically.
protected void Page_Load(object sender, EventArgs e) {
HtmlEditorToolbar stToolbar1 = HtmlEditorToolbar.CreateStandardToolbar1();
ToolbarUndoButton undo = new ToolbarUndoButton();
stToolbar1.Items.Add(undo);
ASPxHtmlEditor1.Toolbars.Add(stToolbar1);
}
<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server">
<Toolbars>
<dx:HtmlEditorToolbar Name="StandardToolbar1">
<Items>
<dx:ToolbarUndoButton>
</dx:ToolbarUndoButton>
</Items>
</dx:HtmlEditorToolbar>
</Toolbars>
</dx:ASPxHtmlEditor>
Object StateManager CollectionItem ToolbarItemBase HtmlEditorToolbarItem ToolbarUndoButton
See Also