LEADTOOLS Barcode (Leadtools.Barcode assembly)
LEAD Technologies, Inc

GetBarcodeWriteOptionsType Method








A BarcodeSymbology enumeration member that specifies the symbology.
Gets the type of the barcode write options class associated with a symbology. .NET support WinRT support Silverlight support
Syntax
public static Type GetBarcodeWriteOptionsType( 
   BarcodeSymbology symbology
)
'Declaration
 
Public Shared Function GetBarcodeWriteOptionsType( _
   ByVal symbology As BarcodeSymbology _
) As Type
'Usage
 
Dim symbology As BarcodeSymbology
Dim value As Type
 
value = BarcodeWriter.GetBarcodeWriteOptionsType(symbology)
public static Windows.UI.Xaml.Interop.TypeName GetBarcodeWriteOptionsType( 
   BarcodeSymbology symbology
)
ObjectiveC Syntax
 function Leadtools.Barcode.BarcodeWriter.GetBarcodeWriteOptionsType( 
   symbology 
)
public:
static Type^ GetBarcodeWriteOptionsType( 
   BarcodeSymbology symbology
) 

Parameters

symbology
A BarcodeSymbology enumeration member that specifies the symbology.

Return Value

The System.Type of the BarcodeWriteOptions derived class that is used by LEADTOOLS when writing barcode of the the symbology (or type) specified in symbology.
Remarks

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 System.Type 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.

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.

Example

This example will show how to use GetBarcodeWriteOptionsType.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

BarcodeWriter Class
BarcodeWriter Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

Leadtools.Barcode requires a Barcode Module license and unlock key. For more information, refer to: LEADTOOLS Toolkit Features