Skip to main content
All docs
V25.2
  • ReportDesigner.UnregisterControl<T>() Method

    Unregisters a control from the Report Designer and removes it from the Toolbox.

    Namespace: DevExpress.Xpf.Reports.UserDesigner

    Assembly: DevExpress.Xpf.ReportDesigner.v25.2.dll

    NuGet Package: DevExpress.Wpf.Reporting

    Declaration

    public static void UnregisterControl<T>()
        where T : XRControl

    Type Parameters

    Name Description
    T

    The control’s type.

    Remarks

    The following example demonstrates how to unregister the XRLabel control to remove it from the Report Designer‘s Toolbox.

    using DevExpress.Xpf.Reports.UserDesigner;
    using DevExpress.XtraReports.UI;
    //...
    
    private void Window_Loaded(object sender, RoutedEventArgs e) {
        ReportDesigner.UnregisterControl<XRLabel>();
        reportDesigner.OpenDocument(new XtraReport());
    }
    
    See Also