Table of Contents

Class BarcodeElement

Namespace
MiPdf.Layout
Assembly
MiPdf.dll

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

barcode Barcode

The barcode.

width double?

Width in points including the quiet zone (default: 2D codes 72 pt, linear codes 1 pt per module).

height double?

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

TextAlignment

AlternateText

Alternative text for accessibility (tagged PDF / PDF/UA); defaults to the encoded text.

public string? AlternateText { get; set; }

Property Value

string

Barcode

The barcode to draw.

public Barcode Barcode { get; }

Property Value

Barcode

Height

Height in points (null: 2D codes keep their aspect ratio, linear codes 40 pt).

public double? Height { get; set; }

Property Value

double?

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; }

Property Value

double?