ReportingSettings.TreatLineWidthAsPixels Property

OBSOLETE

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.v21.1.dll

Declaration

[Obsolete("This property is obsolete now.")]
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