Class BarcodeElement
A barcode in the layout flow (also usable in table cells).
public sealed class BarcodeElement : LayoutElement
- Inheritance
-
BarcodeElement
- Inherited Members
Constructors
BarcodeElement(Barcode, double?, double?)
public BarcodeElement(Barcode barcode, double? width = null, double? height = null)
Parameters
barcodeBarcodeThe barcode.
widthdouble?Width in points including the quiet zone (default: 2D codes 72 pt, linear codes 1 pt per module).
heightdouble?Height in points (default: 2D codes square, linear codes 40 pt).
Properties
Alignment
Horizontal position within the available width (default Left; Justify is treated as Left).
public TextAlignment Alignment { get; set; }
Property Value
AlternateText
Alternative text for accessibility (tagged PDF / PDF/UA); defaults to the encoded text.
public string? AlternateText { get; set; }
Property Value
Barcode
The barcode to draw.
public Barcode Barcode { get; }
Property Value
Height
Height in points (null: 2D codes keep their aspect ratio, linear codes 40 pt).
public double? Height { get; set; }
Property Value
Width
Width in points including the quiet zone (null: 2D codes 72 pt, linear codes 1 pt per module). Reduced to the available width if larger.
public double? Width { get; set; }