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.v24.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.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the AutoModule property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also