The requested page is not available for the requested platform. You are viewing the content for Default platform.

ReportingSettings.TreatLineWidthAsPixels Property

Starting with version 18.1, enables you to revert to the previous line width calculation behavior.

Namespace: DevExpress.XtraReports.Native

Assembly: DevExpress.XtraReports.v19.1.dll


public static bool TreatLineWidthAsPixels { get; set; }
Public Shared Property TreatLineWidthAsPixels As Boolean

Property Value

Type Description

true, to always treat the line width as pixels; false, to measure the line width in units specified by the XtraReport.ReportUnit option. The default value is true.


Starting with version 18.1, the XRLine.LineWidth property has changed its type from Int32 to Single and become treated as pixels regardless of the XtraReport.ReportUnit property value.

To switch to using the previous line width calculation behavior that depends on the XtraReport.ReportUnit setting, set the static TreatLineWidthAsPixels property to false at the application startup.

DevExpress.XtraReports.Native.ReportingSettings.TreatLineWidthAsPixels = false;
See Also