Skip to main content

ReportingSettings.TreatLineWidthAsPixels Property


This property is obsolete now.

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

Namespace: DevExpress.XtraReports.Native

Assembly: DevExpress.XtraReports.v22.1.dll

NuGet Package: DevExpress.Reporting.Core


[Obsolete("This property is obsolete now.")]
public static bool TreatLineWidthAsPixels { get; set; }

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