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

XRDesignRibbonForm.SetWindowVisibility(DesignDockPanelType, Boolean) Method

Sets the visibility of dock panels in the ribbon-based End-User Report Designer form.

Namespace: DevExpress.XtraReports.UserDesigner

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

NuGet Package: DevExpress.Win.Reporting

#Declaration

public virtual void SetWindowVisibility(
    DesignDockPanelType designDockPanels,
    bool visible
)

#Parameters

Name Type Description
designDockPanels DesignDockPanelType

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

visible Boolean

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

#Remarks

Use the SetWindowVisibility method, to control the visibility of dock panels in a custom End-User Designer based on the XRDesignRibbonForm object.

#Example

This example demonstrates how to use the XRDesignRibbonForm class.

To assign a report to a design form, use the XRDesignRibbonForm.OpenReport method. And, the XRDesignRibbonForm.SetWindowVisibility method hides the Field List and Properties window dock panels in the created design form.

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

private void button1_Click(object sender, EventArgs e) {
    // Create a design form.
    XRDesignRibbonForm designRibbonForm = new XRDesignRibbonForm();

    // Open the report to edit.
    designRibbonForm.OpenReport(new XtraReport1());

    // Hide the Field List and Properties window dock panels.
    designRibbonForm.SetWindowVisibility(DesignDockPanelType.FieldList |
        DesignDockPanelType.PropertyGrid, false);

    // Invoke the design form.
    designRibbonForm.Show();
}
See Also