←Select platform

OneDBarcodeWriteOptions Class

Summary

Contains the extra options to use when reading standard 1D (linear) barcodes.

Syntax

C#
VB
Java
Objective-C
C++
[SerializableAttribute()] 
public class OneDBarcodeWriteOptions : BarcodeWriteOptions 
<TypeConverterAttribute()> 
<SerializableAttribute()> 
Public Class OneDBarcodeWriteOptions  
   Inherits Leadtools.Barcode.BarcodeWriteOptions 
   Implements System.ICloneable  
@interface LTOneDBarcodeWriteOptions : LTBarcodeWriteOptions 
public class OneDBarcodeWriteOptions extends BarcodeWriteOptions 
[TypeConverterAttribute()] 
[SerializableAttribute()] 
public ref class OneDBarcodeWriteOptions : public Leadtools.Barcode.BarcodeWriteOptions, System.ICloneable   

Remarks

The OneDBarcodeWriteOptions class is used to control the options when standard 1D (linear) barcodes using LEADTOOLS. Set the options in two ways:

The BarcodeWriter class contains default options for each barcode symbology (or group of common symbologies). These options can be retrieved using the BarcodeWriter.GetDefaultOptions method passing one of the following:

. Then change the members of the returned OneDBarcodeWriteOptions by casting it from BarcodeWriteOptions to OneDBarcodeWriteOptions.

Also create an instance of one of OneDBarcodeWriteOptions class and use it directly in the BarcodeWriter.WriteBarcode method which accepts the options as an input parameter.

The base BarcodeWriteOptions contains the following members and features:

Member Description
BarcodeWriteOptions.ForeColor

Controls the barcode foreground color (color of the bars or symbols) to use when writing a barcode to an image.

BarcodeWriteOptions.BackColor

Controls the barcode background color (color of the spaces) to use when writing a barcode to an image.

BarcodeWriteOptions.Load and BarcodeWriteOptions.Save

Can be used to save or load the options to/from an XML file or stream.

BarcodeWriteOptions.GetSupportedSymbologies

This class overrides the base class method to return an array containing the symbologies: BarcodeSymbology.EAN13, BarcodeSymbology.EAN8, BarcodeSymbology.UPCA, BarcodeSymbology.UPCE, BarcodeSymbology.Code3Of9, BarcodeSymbology.Code128, BarcodeSymbology.CodeInterleaved2Of5, BarcodeSymbology.Codabar, BarcodeSymbology.UCCEAN128, BarcodeSymbology.Code93, BarcodeSymbology.EANEXT5, BarcodeSymbology.EANEXT2, BarcodeSymbology.MSI, BarcodeSymbology.Code11, BarcodeSymbology.CodeStandard2Of5, BarcodeSymbology.GS1Databar, BarcodeSymbology.GS1DatabarLimited and BarcodeSymbology.GS1DatabarExpanded

In addition to these features and members, OneDBarcodeWriteOptions contains these standard 1D (linear) barcodes specific features:

Member Description
TextPosition

The text position to use when the data string is written along with the barcode

EnableErrorCheck

Outputs the optional check word for validity check when writing a barcode (if supported)

UseXModule

Uses the XModule when writing barcodes of this type

XModule

The size of the smallest module when writing a barcode

SetGS1DatabarLinkageBit

Sets the linkage bit when writing GS1 Databar barcodes

WriteTruncatedGS1Databar

Writes truncated GS1 Databar symbols

Code128TableEncoding

Encoding table to use when writing Code 128 barcodes

Code11CheckDigitType

Check digit type to use when reading writing 11 (USD-8) barcodes

MSIModuloType

Check digit type to use when writing MSI (Pulse Width Modulated) barcodes

Example

For an example, refer to OneDBarcodeReadOptions.

Requirements

Target Platforms

Help Version 20.0.2018.1.19
Products | Support | Contact Us | Copyright Notices
© 1991-2018 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Barcode Assembly