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

XRDesignMdiController.AddCommandHandler(ICommandHandler) Method

Adds the specified command handler to the command handlers list for one or several of the report commands.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v21.2.Extensions.dll

NuGet Packages: DevExpress.Win.Design, DevExpress.Win.Reporting

Declaration

public void AddCommandHandler(
    ICommandHandler handler
)

Parameters

Name Type Description
handler ICommandHandler

An object which implements 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.

Use the AddCommandHandler method, to add custom handlers to any of the report commands listed in the ReportCommand enumeration.

To remove the current command handler from one or several report commands, use the XRDesignMdiController.RemoveCommandHandler method.

See Also