←Select platform

GetSymbologyFriendlyName Method

Summary
Returns the friendly name of a barcode symbology.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public static string GetSymbologyFriendlyName( 
   BarcodeSymbology symbology 
) 
+ (NSString *)friendlyNameForSymbology:(LTBarcodeSymbology)symbology 
public static String getSymbologyFriendlyName(BarcodeSymbology symbology) 
public: 
static String^ GetSymbologyFriendlyName(  
   BarcodeSymbology symbology 
)  
def GetSymbologyFriendlyName(self,symbology): 

Parameters

symbology
A BarcodeSymbology enumeration member.

Return Value

A string that contains the friendly name of the symbology.

Remarks

Do not pass the special BarcodeSymbology.Unknown to this member, as this will result in an exception being thrown.

The GetSupportedSymbologies returns all the barcode symbologies (types) supported by LEADTOOLS. Depending on the level of unlocked support and availability of the back end barcodes assemblies, not all of the supported types may be available. For example, if the Leadtools.Barcode.QrRead.dll assembly is missing, QR read support will not be available to your application.

To get a list of the barcode symbologies available for reading, use BarcodeReader.GetAvailableSymbologies and to get a list of the barcode symbologies available for writing, use BarcodeWriter.GetAvailableSymbologies.

To get the friendly name of any barcode symbology, use BarcodeEngine.GetSymbologyFriendlyName.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.Barcode; 
using Leadtools.ImageProcessing; 
 
 
public void BarcodeEngine_SupportedAndAvailableSymbologiesExample() 
{ 
   // Show all the supported symbologies 
   BarcodeSymbology[] supportedSymbologies = BarcodeEngine.GetSupportedSymbologies(); 
   Console.WriteLine("{0} Supported symbologies:", supportedSymbologies.Length); 
   foreach (BarcodeSymbology symbology in supportedSymbologies) 
   { 
      Console.WriteLine("{0}: {1}", symbology, BarcodeEngine.GetSymbologyFriendlyName(symbology)); 
   } 
   Console.WriteLine("----------"); 
 
   // Create a Barcode engine to get the available read and write symbologies 
   BarcodeEngine engine = new BarcodeEngine(); 
 
   BarcodeSymbology[] readSymbologies = engine.Reader.GetAvailableSymbologies(); 
   Console.WriteLine("{0} Avaliable read symbologies:", readSymbologies.Length); 
   foreach (BarcodeSymbology symbology in readSymbologies) 
   { 
      Console.WriteLine(symbology); 
   } 
   Console.WriteLine("----------"); 
 
   BarcodeSymbology[] writeSymbologies = engine.Writer.GetAvailableSymbologies(); 
   Console.WriteLine("{0} Avaliable write symbologies:", writeSymbologies.Length); 
   foreach (BarcodeSymbology symbology in writeSymbologies) 
   { 
      Console.WriteLine(symbology); 
   } 
} 
Requirements

Target Platforms

Help Version 22.0.2023.5.9
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Barcode Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.