Back to Devexpress

ToolbarPrintButton Class

aspnet-devexpress-dot-web-dot-aspxhtmleditor-73821120.md

latest3.2 KB
Original Source

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.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public class ToolbarPrintButton :
    HtmlEditorToolbarItem
vb
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.

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

Implements

IStateManager

IPropertiesOwner

IExpressionsAccessor

Inheritance

Object StateManager CollectionItem ToolbarItemBase HtmlEditorToolbarItem ToolbarPrintButton

See Also

ToolbarPrintButton Members

HTML Editor

Default Toolbar Items

Menu Toolbar Items

Html Editor Designer

DevExpress.Web.ASPxHtmlEditor Namespace