The requested page is not available for the requested platform. You are viewing the content for Default platform.

XRDesignFormExBase.SetWindowVisibility(DesignDockPanelType, Boolean) Method

Sets the visibility of design dock panels in the End-User Report Designer.

Namespace: DevExpress.XtraReports.UserDesigner

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


public void SetWindowVisibility(
    DesignDockPanelType designDockPanels,
    bool visible
Public Sub SetWindowVisibility(
    designDockPanels As DesignDockPanelType,
    visible As Boolean


Name Type Description
designDockPanels DesignDockPanelType

A DesignDockPanelType enumeration value, identifying the dock panel(s) of the End-User Report Designer.

visible Boolean

true, to display the dock panel(s); otherwise, false.


Use the SetWindowVisibility method, to hide or show a dock panel when creating a custom End-User Designer.

The XRDesignFormExBase class is intended to provide a single-document interface to the End-User Report Designer. To provide a multi-document interface, use the XRDesignForm or XRDesignRibbonForm class instead. See Report Designer to learn more.


This example illustrates how to remove dock panels from the Report Designer using the IDesignForm.SetWindowVisibility method.

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.
    // IDesignForm designForm = designTool.DesignForm;
    IDesignForm designForm = designTool.DesignRibbonForm;

    // Hide the Field List and Property Grid dock panels.
    designForm.SetWindowVisibility(DesignDockPanelType.FieldList |
        DesignDockPanelType.PropertyGrid, false);

    // Load a Report Designer in a dialog window.
    // designTool.ShowDesignerDialog();
See Also