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

WinControlContainer.DrawMethod Property

Gets or sets the type of the method that is used to draw a Windows Forms control in a report.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v17.2.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

[DefaultValue(WinControlDrawMethod.UseWMPaint)]
[SRCategory(ReportStringId.CatBehavior)]
public virtual WinControlDrawMethod DrawMethod { get; set; }

Property Value

Type Default Description
WinControlDrawMethod **UseWMPaint**

A WinControlDrawMethod enumeration value.

Available values:

Name Description
UseWMPaint

Use the WM_PAINT message to draw the Windows Forms control.

UseWMPrint

Use the WM_PRINT message to draw the Windows Forms control.

UseWMPaintRecursive

Use the WM_PAINT message to recursively draw the Windows Forms control and all its child controls.

UseWMPrintRecursive

Use the WM_PRINT message to recursively draw the Windows Forms control and all its child controls.

Remarks

How a Windows Forms control (represented by a WinControlContainer object) is drawn in a report depends on its type. This enumeration allows the method that will be used to draw the control to be matched with its type, ensuring that the control is correctly represented in a report.

See Also