Table of Contents

Class Code39Options

Namespace
Egami.Barcodes
Assembly
Egami.Barcodes.dll

How Code39(string, Code39Options?) makes a symbol.

public sealed record Code39Options : IEquatable<Code39Options>
Inheritance
Code39Options
Implements
Inherited Members

Examples

// Capitals, digits and a few symbols; lowercase switches to Full ASCII on its own.
Barcode part = Barcode.Code39("PART-0042", new Code39Options { CheckDigit = true });
Console.WriteLine(part.HumanReadableText); // PART-0042 and its mod 43 check character

Properties

CheckDigit

Gets a value indicating whether a mod 43 check character goes before the stop character; off by default.

public bool CheckDigit { get; init; }

Property Value

bool

Default

Gets the defaults.

public static Code39Options Default { get; }

Property Value

Code39Options

FullAscii

Gets a value indicating whether to write Full ASCII, which spells the ASCII characters beyond the 43 of Code 39 as pairs, or null, the default, for Full ASCII only when the text needs it. false rejects text that needs it. A reader must be set to Full ASCII to read such text back.

public bool? FullAscii { get; init; }

Property Value

bool?

Height

Gets the height of the bars in modules, or null, the default, for 50. It sets the height when the barcode is drawn at a module size; drawn into a rectangle, the bars fill it.

public int? Height { get; init; }

Property Value

int?

Exceptions

ArgumentOutOfRangeException

The value is not positive.

WideRatio

Gets the width of a wide bar or space in narrow ones, 2 or 3, or null, the default, for 2.

public int? WideRatio { get; init; }

Property Value

int?

Exceptions

ArgumentOutOfRangeException

The value is not 2 or 3.