Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

XRDesignMdiController.RemoveCommandHandler(ICommandHandler) Method

Removes the specified command handler for one or several of the report commands.

Namespace: DevExpress.XtraReports.UserDesigner

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

NuGet Package: DevExpress.Win.Reporting

#Declaration

public void RemoveCommandHandler(
    ICommandHandler handler
)

#Parameters

Name Type Description
handler ICommandHandler

An object which implements the ICommandHandler interface.

#Remarks

Note

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

Call the RemoveCommandHandler method, to remove an existing command handler for any of the report commands listed in the ReportCommand enumeration.

To add custom command handler to one or several report commands, call the XRDesignMdiController.AddCommandHandler method.

See Also