←Select platform

BarcodeData Constructor(BarcodeSymbology,string)

Summary

Initializes a new instance of the BarcodeData class with specified symbology and ASCII text value.

Syntax

C#
VB
Java
Objective-C
WinRT C#
C++
Public Function New( _ 
   ByVal symbology As Leadtools.Barcode.BarcodeSymbology, _ 
   ByVal value As String _ 
) 
public BarcodeData(  
   Leadtools.Barcode.BarcodeSymbology symbology, 
   string value 
) 
- (instancetype)initWithSymbology:(LTBarcodeSymbology)symbology  
                            value:(nullable NSString *)value 
             
public BarcodeData( 
  BarcodeSymbology symbology, 
  String value 
) 
             
function BarcodeData(  
   symbology , 
   value  
) 
public: 
BarcodeData(  
   Leadtools.Barcode.BarcodeSymbology symbology, 
   String^ value 
) 

Parameters

symbology
Barcode symbology to use.

value
A String that specifies the ASCII text representation of the barcode data.

Remarks

This constructor initializes the BarcodeData member as follows:

s

Member Value
Symbology symbology
Bounds LogicalRectangle.Empty
RotationAngle 0
BarWidthReduction 0
Byte array inside GetData The raw value of the bytes array in value. if this parameter is null, then the data is null too.
Value value.
Tag null (Nothing in Visual Basic)

To quickly construct a new BarcodeData object with a specific symbology and data as a raw byte array, use BarcodeData(BarcodeSymbology symbology, byte[] data) to construct a default BarcodeData, use BarcodeData().

To create an instance of BarcodeData suitable for writing for a specified symbology, use CreateDefaultBarcodeData.

Example

This example creates a BarcodeData with specified symbology and ASCII text. It then writes it to an image.

 

Requirements

Target Platforms

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

Leadtools.Barcode Assembly