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.v18.2.dll

Declaration

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

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.

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