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

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

NuGet Packages: DevExpress.Reporting.Core, DevExpress.WindowsDesktop.Core

Declaration

public static bool TreatLineWidthAsPixels { get; set; }

Property Value

Type Description
Boolean

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.

Remarks

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