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

PrintingSystemBase.AddCommandHandler(ICommandHandler) Method

Adds the specified command handler to the command handlers list for one or several of the printing system commands (listed in the PrintingSystemCommand enumeration).

Namespace: DevExpress.XtraPrinting

Assembly: DevExpress.Printing.v20.2.Core.dll

NuGet Packages: DevExpress.Printing.Core, DevExpress.WindowsDesktop.Printing.Core

Declaration

public void AddCommandHandler(
    ICommandHandler handler
)

Parameters

Name Type Description
handler ICommandHandler

An object implementing the ICommandHandler interface.

Remarks

Note

The AddCommandHandler method takes effect only in Windows Forms applications, where it must be called after the DocumentViewer.DocumentSource property has been assigned a value.

The following code snippets (auto-collected from DevExpress Examples) contain references to the AddCommandHandler(ICommandHandler) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also