XRDesignForm.SetWindowVisibility(DesignDockPanelType, Boolean) Method
Sets the visibility of dock panels in the standard End-User Report Designer form.
Namespace: DevExpress.XtraReports.UserDesigner
Assembly: DevExpress.XtraReports.v24.1.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 dock panel visibility in the End-User Designer based on the XRDesignForm object.
Example
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;
//disable saving of the designer panels configuration
(designForm as XRDesignForm).SaveState = false;
// Hide the Field List and Properties window dock panels.
designForm.SetWindowVisibility(DesignDockPanelType.FieldList |
DesignDockPanelType.PropertyGrid, false);
// Load a Report Designer in a dialog window.
// designTool.ShowDesignerDialog();
designTool.ShowRibbonDesignerDialog();
}
See Also