ToolbarPrintButton Class

A default toolbar button that invokes a standard 'Print' dialog allowing the editor's content to be printed.

Namespace: DevExpress.Web.ASPxHtmlEditor

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

Declaration

public class ToolbarPrintButton :
    HtmlEditorToolbarItem
Public Class ToolbarPrintButton
    Inherits HtmlEditorToolbarItem

Remarks

The ASPxHtmlEditor allows end-users to print its contents by using the Print button (ToolbarPrintButton). By default, the Print button is not displayed in the editor's toolbars.

You can add the Print 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();
    ToolbarPrintButton printButton = new ToolbarPrintButton();
    stToolbar1.Items.Add(printButton);
    ASPxHtmlEditor1.Toolbars.Add(stToolbar1);
}
See Also