Skip to main content

XRBarCode.AutoModule Property

Gets or sets whether the Module property value should be calculated automatically based on the barcode size.

Namespace: DevExpress.XtraReports.UI

Assembly: DevExpress.XtraReports.v26.1.dll

NuGet Package: DevExpress.Reporting.Core

Declaration

[DefaultValue(false)]
[SRCategory(ReportStringId.CatBehavior)]
public bool AutoModule { get; set; }

Property Value

Type Default Description
Boolean false

true to automatically calculate the Module value; otherwise, false.

Remarks

Use the AutoModule property to adjust the XRBarCode.Module property value when resizing a bar code. Enabling the AutoModule setting may cause issues if the bar code’s width is too narrow to display all the bars correctly (it also depends on the selected Symbology. In this case, a bar code scanner may be unable to read the output.

The Alignment property is ignored if the AutoModule property is enabled and the TargetDeviceDpi property is set. If you want the Alignment property to work correctly, disable the AutoModule property or reset the TargetDeviceDpi property.

See Also