Back to Devexpress

BarCodeControl.Module Property

windowsforms-devexpress-dot-xtraeditors-dot-barcodecontrol-508752aa.md

latest2.0 KB
Original Source

BarCodeControl.Module Property

Gets or sets the width of the narrowest bar or space, in pixels.

Namespace : DevExpress.XtraEditors

Assembly : DevExpress.XtraEditors.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(2)]
[DXCategory("Behavior")]
public double Module { get; set; }
vb
<DefaultValue(2)>
<DXCategory("Behavior")>
Public Property [Module] As Double

Property Value

TypeDefaultDescription
Double2

The width of the narrowest bar or space, in pixels.

|

Remarks

The Module property cannot be set to a value less than or equal to 0.

When the Module property is set to a very small value, so that the width of a bar code is too small to correctly display all its bars according to the currently selected BarCodeControl.Symbology, a bar code output may become unreadable by an appropriate bar code scanner. To learn more, see Bar Code Recognition Specifics.

To better control the Module property value when resizing a bar code, set the BarCodeControl.AutoModule property to true.

See Also

AutoModule

BarCodeControl Class

BarCodeControl Members

DevExpress.XtraEditors Namespace