←Select platform

GetBarcodeReadOptionsType Method

Summary

Gets the type of the barcode read options class associated with a symbology.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
public static Type GetBarcodeReadOptionsType(  
   Leadtools.Barcode.BarcodeSymbology symbology 
) 
Public Shared Function GetBarcodeReadOptionsType( _ 
   ByVal symbology As Leadtools.Barcode.BarcodeSymbology _ 
) As Type 
public static Windows.UI.Xaml.Interop.TypeName GetBarcodeReadOptionsType(  
   Leadtools.Barcode.BarcodeSymbology symbology 
) 
+ (Class)barcodeReadOptionsTypeForSymbology:(LTBarcodeSymbology)symbology 
public static java.lang.Class<?> getBarcodeReadOptionsType(BarcodeSymbology symbology) 
 function Leadtools.Barcode.BarcodeReader.GetBarcodeReadOptionsType(  
   symbology  
) 
public: 
static Type^ GetBarcodeReadOptionsType(  
   Leadtools.Barcode.BarcodeSymbology symbology 
)  

Parameters

symbology
A BarcodeSymbology enumeration member that specifies the symbology.

Return Value

The Type of the BarcodeReadOptions derived class that is used by LEADTOOLS when reading barcode of the symbology (or type) specified in symbology.

Remarks

In LEADTOOLS barcode read support, each BarcodeSymbology (or a group of BarcodeSymbology) is associated with a read options class that is a type derived from BarcodeReadOptions (the remarks section of this class contains a table that lists all the symbologies and option classes). You can get the Type of the class associated with a certain symbology by using this GetBarcodeReadOptionsType.

Note that some options classes are shared by more than one symbology, for example, BarcodeSymbology.UPCA and BarcodeSymbology.UPCE both use OneDBarcodeReadOptions. Hence, passing either of these symbologies to this method will return the same type.

BarcodeSymbology.Unknown is a special type that is used to instruct the engine to read all barcodes. It does not have an associated read options class and should not be used in this method, otherwise, an exception will be thrown.

Example

This example will show how to use GetBarcodeReadOptionsType.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Barcode Assembly
Click or drag to resize