Skip to main content

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