Back to Devexpress

XRDesignMdiController.ActiveDesignPanel Property

xtrareports-devexpress-dot-xtrareports-dot-userdesigner-dot-xrdesignmdicontroller-0a549ec8.md

latest3.0 KB
Original Source

XRDesignMdiController.ActiveDesignPanel Property

Provides access to the currently active Design Panel of the XRDesignMdiController.

Namespace : DevExpress.XtraReports.UserDesigner

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

NuGet Package : DevExpress.Win.Reporting

Declaration

csharp
[Browsable(false)]
public XRDesignPanel ActiveDesignPanel { get; }
vb
<Browsable(False)>
Public ReadOnly Property ActiveDesignPanel As XRDesignPanel

Property Value

TypeDescription
XRDesignPanel

An XRDesignPanel object, representing the active Design Panel.

|

Remarks

Use the ActiveDesignPanel property, to obtain the properties of the currently active XRDesignPanel within an End-User Report Designer.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ActiveDesignPanel 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.

reporting-winforms-designer-override-commands/CS/CustomSavingEUD/Form1.cs#L33

csharp
form.ShowDialog();
if (mdiController.ActiveDesignPanel != null) {
    mdiController.ActiveDesignPanel.CloseReport();

reporting-winforms-designer-override-commands/VB/CustomSavingEUD/Form1.vb#L39

vb
form.ShowDialog()
If mdiController.ActiveDesignPanel IsNot Nothing Then
    mdiController.ActiveDesignPanel.CloseReport()

See Also

XRDesignMdiController Class

XRDesignMdiController Members

DevExpress.XtraReports.UserDesigner Namespace