Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.6.22
|
Leadtools.Barcode Namespace > BarcodeWriter Class : GetBarcodeWriteOptionsType Method |
public static string GetBarcodeWriteOptionsType( BarcodeSymbology symbology )
'Declaration
Public Shared Function GetBarcodeWriteOptionsType( _ ByVal symbology As BarcodeSymbology _ ) As String
'Usage
Dim symbology As BarcodeSymbology Dim value As String value = BarcodeWriter.GetBarcodeWriteOptionsType(symbology)
public static string GetBarcodeWriteOptionsType( BarcodeSymbology symbology )
function Leadtools.Barcode.BarcodeWriter.GetBarcodeWriteOptionsType( symbology )
public: static String^ GetBarcodeWriteOptionsType( BarcodeSymbology symbology )
In LEADTOOLS barcode write support, each BarcodeSymbology (or a group of BarcodeSymbology) is associated with a write options class that is a type derived from BarcodeWriteOptions (the remarks section of this class contains a table that lists all the symbologies and option classes). You can get the type name of the class associated with a certain symbology by using this GetBarcodeWriteOptionsType.
Note that some options classes are shared by more than one symbology, for example, BarcodeSymbology.UPCA and BarcodeSymbology.UPCE both use OneDBarcodeWriteOptions. Hence, passing either of these symbologies to this method will return the same type name.
BarcodeSymbology.Unknown is a special type that is used to instruct the engine to read all barcodes. It does not have an associated write options class and should not be used in this method, otherwise, an exception will be thrown.