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.v18.2.dll
Declaration
[SRCategory(ReportStringId.CatBehavior)]
[DefaultValue(WinControlDrawMethod.UseWMPaint)]
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DrawMethod property.
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.