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

XRDesignFormExBase.DesignPanel Property

Gets or sets the Design Panel used to edit a report in the current End-User Designer form.

Namespace: DevExpress.XtraReports.UserDesigner

Assembly: DevExpress.XtraReports.v19.1.Extensions.dll

NuGet Package: DevExpress.Win.Reporting

Declaration

public XRDesignPanel DesignPanel { get; set; }

Property Value

Type Description
XRDesignPanel

An XRDesignPanel object, which represents the Design Panel associated with the form.

Remarks

Use the DesignPanel property to either access a XRDesignPanel associated with the current XRDesignFormExBase object, or assign a new Design Panel to it.

The report currently being edited in the Design Panel is accessed via the XRDesignPanel.Report property.

Note

Within an MDI End-User Designer, the XRDesignForm.DesignMdiController property of an XRDesignForm object should be used instead.

Example

This example illustrates how to hide some of the Report Designer commands by calling the XRDesignMdiController.SetCommandVisibility method of a Design form’s XRDesignMdiController.

using DevExpress.XtraReports.UI;
using DevExpress.XtraReports.UserDesigner;
// ...

private void button1_Click(object sender, System.EventArgs e) {
    // Create a Design Tool with an assigned report instance.
    ReportDesignTool designTool = new ReportDesignTool(new XtraReport1());

    // Access the standard or ribbon-based Designer form and its MDI Controller.
    // IDesignForm designForm = designTool.DesignForm;
    IDesignForm designForm = designTool.DesignRibbonForm;
    XRDesignMdiController mdiController = designForm.DesignMdiController;

    // Hide the "New with Wizard..." item on the File menu,
    // and the "Design in Report Wizard..." item in the report's smart tag.
    mdiController.SetCommandVisibility(ReportCommand.NewReportWizard, CommandVisibility.None);
    mdiController.SetCommandVisibility(ReportCommand.VerbReportWizard, CommandVisibility.None);

    // Load a Report Designer in a dialog window.
    // designTool.ShowDesignerDialog();
    designTool.ShowRibbonDesignerDialog();
}

The following code snippets (auto-collected from DevExpress Examples) contain references to the DesignPanel property.

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