Back to Devexpress

ToolbarRedoButton Class

aspnet-devexpress-dot-web-dot-aspxhtmleditor-92aa4927.md

latest3.2 KB
Original Source

ToolbarRedoButton Class

A default toolbar button that allows a previously canceled action performed within the design view area to be returned.

Namespace : DevExpress.Web.ASPxHtmlEditor

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

NuGet Package : DevExpress.Web

Declaration

csharp
public class ToolbarRedoButton :
    HtmlEditorToolbarItem
vb
Public Class ToolbarRedoButton
    Inherits HtmlEditorToolbarItem

Remarks

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 Redo button to toolbars by using either the ASPxHtmlEditor designer at design time, or programmatically.

csharp
protected void Page_Load(object sender, EventArgs e) {
    HtmlEditorToolbar stToolbar1 = HtmlEditorToolbar.CreateStandardToolbar1();
    ToolbarRedoButton redo = new ToolbarRedoButton();
    stToolbar1.Items.Add(redo);
    ASPxHtmlEditor1.Toolbars.Add(stToolbar1);
}
aspx
<dx:ASPxHtmlEditor ID="ASPxHtmlEditor1" runat="server">
    <Toolbars>
        <dx:HtmlEditorToolbar Name="StandardToolbar1">
            <Items>
                <dx:ToolbarRedoButton>
                </dx:ToolbarRedoButton>
            </Items>
        </dx:HtmlEditorToolbar>
    </Toolbars>
</dx:ASPxHtmlEditor>

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Object StateManager CollectionItem ToolbarItemBase HtmlEditorToolbarItem ToolbarRedoButton

See Also

ToolbarRedoButton Members

HTML Editor

Default Toolbar Items

Menu Toolbar Items

Html Editor Designer

DevExpress.Web.ASPxHtmlEditor Namespace