Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WinControlContainer() Constructor

In This Article

Initializes a new instance of the WinControlContainer class with the default settings.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v24.2.dll

NuGet Package: DevExpress.Reporting.Core

#Declaration

public WinControlContainer()

#Remarks

The following method creates a WinControlContainer object and sets some of its properties. A GroupBox object is then wrapped in it.

using System.Drawing;
using System.Windows.Forms;
using DevExpress.XtraReports.UI;
// ...

public WinControlContainer CreateWinControl() {
   // Create a GroupBox object.
   GroupBox groupBox = new GroupBox();

   // Set its text.
   groupBox.Text = "Windows.Forms Group Box";

   // Create a WinControlContainer object.
   WinControlContainer winContainer = new WinControlContainer();

   // Set its location and size.
   winContainer.LocationF = new PointF(250F, 40F);
   winContainer.SizeF = new SizeF(200F, 100F);

   // Set the groupBox as a wrapped object.
   winContainer.WinControl = groupBox;

   return winContainer;
}
See Also