WinControlContainer.ImageType Property

Gets or sets a value which indicates how a WinControl contents is rendered.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v19.2.dll


public virtual WinControlImageType ImageType { get; set; }
Public Overridable Property ImageType As WinControlImageType

Property Value

Type Default Description


A WinControlImageType enumeration value which specifies how a WinControl is rendered in a report.


Use the ImageType property to specify either a WinControlContainer.WinControl should be internally rendered as a metafile in a report (in this case the quality of the rendered image is always good, but in some cases some details of the control may be lost), or as a bitmap (in this case the quality of the rendered image is sometimes poor, but it allows a control to be drawn more precisely).

The following images demonstrate the difference in rendering different Windows Forms controls in a report.

System.Windows.Forms control ImageType = Metafile ImageType = Bitmap
Button WinControl.Button.Metafile.png WinControl.Button.Bitmap.png
TextBox with some text WinControl.TextBox.Metafile.png WinControl.TextBox.Bitmap.png

To achieve Microsoft Azure compatibility, set the ImageType property to WinControlImageType.Bitmap or set the AzureCompatibility.Enable property to true.

See Also