Back to Devexpress

Interleaved2of5Generator.WideNarrowRatio Property

corelibraries-devexpress-dot-xtraprinting-dot-barcode-dot-interleaved2of5generator-914b311e.md

latest2.4 KB
Original Source

Interleaved2of5Generator.WideNarrowRatio Property

Gets or sets the density of a bar code’s bars.

Namespace : DevExpress.XtraPrinting.BarCode

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

NuGet Package : DevExpress.Printing.Core

Declaration

csharp
[DefaultValue(3)]
public virtual float WideNarrowRatio { get; set; }
vb
<DefaultValue(3)>
Public Overridable Property WideNarrowRatio As Single

Property Value

TypeDefaultDescription
Single3

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

|

Remarks

Use this property to specify the ratio of the thickest bar to the narrowest. The value assigned should be equal to or greater than 2.5.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the WideNarrowRatio 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.

reporting-add-a-bar-code-to-a-report/CS/Form1.cs#L387

csharp
((Interleaved2of5Generator)barCode.Symbology).CalcCheckSum = false;
((Interleaved2of5Generator)barCode.Symbology).WideNarrowRatio = 3;

See Also

Interleaved 2 of 5

Interleaved2of5Generator Class

Interleaved2of5Generator Members

DevExpress.XtraPrinting.BarCode Namespace