XDimension Property
Gets or sets the width in points of a narrow bar.
Syntax
'Declaration Public Property XDimension As Double
'Usage Dim instance As PDFBarcode Dim value As Double instance.XDimension = value value = instance.XDimension
public double XDimension {get; set;}
Property Value
A double value specifying the width of a narrow bar.Exceptions
| Exception | Description |
|---|---|
| System.ArgumentOutOfRangeException | Thrown when value is less than or equal to zero. |
Remarks
The recommended width of a narrow bar is 0.864 points, which is 12 mils (1 mil = 0.001inches). Depending on the barcode printer resolution and quality of barcode scanner, the XDimension can be increased or decreased to make sure the barcode is scanned correctly. A lower XDimension results in a higher barcode density and less occupied space, but it requires high resolution printers (laser printer quality) and precise scanners in order to read the barcodes.
Requirements
Target Platforms: Windows 7, Windows 10, Windows 11, Windows Server 2022, Windows Server 2025
See Also