CodabarGenerator.WideNarrowRatio Property

Gets or sets the density of a barcode’s bars.

Namespace: DevExpress.XtraPrinting.BarCode

Assembly: DevExpress.Printing.v21.2.Core.dll


public float WideNarrowRatio { get; set; }

Property Value

Type Default Description


A float value specifying the density of a barcode’s bars.


Use this property to specify the ratio of the thickest bar to the narrowest. The value assigned should be equal to or between 2 and 3.

The following code snippets (auto-collected from DevExpress Examples) contain references to the WideNarrowRatio property.


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