←Select platform

Clone Method

Summary
Creates an exact copy of this MicroQR barcode.
Syntax
C#
Objective-C
C++/CLI
Java
Python
public override BarcodeData Clone() 
- (instancetype)copy 
@Override public BarcodeData clone() 
public: 
BarcodeData^ Clone(); override  
def Clone(self): 

Return Value

The MicroQRBarcodeData cast as an object.

Remarks

This method overrides the base class BarcodeData.Clone to clone the extra members of this class.

Example
C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.Barcode; 
using Leadtools.ImageProcessing; 
 
 
public void BarcodeData_CloneExample() 
{ 
   // Create a BarcodeData object 
   BarcodeData data1 = new BarcodeData(BarcodeSymbology.UPCA, "01234567890"); 
   data1.Bounds = new LeadRect(0, 0, 400, 200); 
 
   // Clone it 
   BarcodeData data2 = data1.Clone() as BarcodeData; 
 
   // Make sure they have the same value but not same reference 
   Debug.Assert(data1 != data2); 
   Debug.Assert(data1.Symbology == data2.Symbology); 
   Debug.Assert(data1.Value == data2.Value); 
   Debug.Assert(data1.Bounds == data2.Bounds); 
 
   Console.WriteLine("Cloned OK"); 
} 
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.