Skip to main content
A newer version of this page is available. .

WinControlContainer() Constructor

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

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v20.2.dll

NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.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;
}

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the WinControlContainer() constructor.

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.

See Also