Back to Devexpress

ReportTestDataSourceProperties Class

xtrareports-devexpress-dot-aiintegration-dot-winforms-dot-reporting-173278b9.md

latest3.5 KB
Original Source

ReportTestDataSourceProperties Class

Contains ReportTestDataSourceBehavior settings.

Namespace : DevExpress.AIIntegration.WinForms.Reporting

Assembly : DevExpress.AIIntegration.WinForms.Reporting.v25.2.dll

NuGet Package : DevExpress.AIIntegration.WinForms.Reporting

Declaration

csharp
public class ReportTestDataSourceProperties :
    BehaviorProperties
vb
Public Class ReportTestDataSourceProperties
    Inherits BehaviorProperties

The following members return ReportTestDataSourceProperties objects:

Remarks

Drop the BehaviorManager component from the Toolbox onto a Form that contains the WinForms Report Designer control. Use the following code to register a ReportTestDataSourceBehavior and attach it to the WinForms Report Designer (reportDesigner1):

csharp
using DevExpress.AIIntegration.WinForms.Reporting;

namespace DXAppReportsTestData {
    public partial class XtraForm1 : DevExpress.XtraBars.Ribbon.RibbonForm {
        public XtraForm2() {
            InitializeComponent();

            behaviorManager1.Attach<ReportTestDataSourceBehavior>(reportDesigner1, behavior => {
                behavior.Properties.Temperature = 0.3f;
                behavior.Properties.RowCount = 10;
            });

            reportDesigner1.OpenReport(new Report1());
        }
    }
}
vb
Imports DevExpress.AIIntegration.WinForms.Reporting

Namespace DXAppReportsTestData
    Partial Public Class XtraForm1
        Inherits DevExpress.XtraBars.Ribbon.RibbonForm

        Public Sub New()
            InitializeComponent()

            behaviorManager1.Attach(Of ReportTestDataSourceBehavior)(reportDesigner1,
                Sub(behavior)
                    behavior.Properties.Temperature = 0.3F
                    behavior.Properties.RowCount = 10
                End Sub)

            reportDesigner1.OpenReport(New Report1())
        End Sub
    End Class
End Namespace

See the following help topic for more information: Preview Reports with AI-generated Test Data (WinForms Report Designer).

Inheritance

Object DevExpress.Utils.Base.BaseObject DevExpress.Utils.Base.BaseProperties DevExpress.Utils.Behaviors.BehaviorProperties ReportTestDataSourceProperties

See Also

ReportTestDataSourceProperties Members

DevExpress.AIIntegration.WinForms.Reporting Namespace