←Select platform

SetData Method

Summary
Sets the array of bytes containing the encoded attributes.

Syntax
C#
C++/CLI
Python
public void SetData( 
   byte[] data 
) 
public: 
void SetData(  
   array<byte>^ data 
)  
def SetData(self,data): 

Parameters

data
Array of bytes containing the encoded attributes.

Remarks

Forms attributes that are generated by FormRecognitionEngine.CreateMasterForm for Master Forms or FormRecognitionEngine.CreateForm for Forms will have the form's attributes that are specified in FormRecognitionEngine.ObjectsManagers. To start modifying the form's attributes you have to open it using OpenMasterForm for Master Forms or OpenForm for Forms, or create it using FormRecognitionEngine.CreateMasterForm for Master Forms or FormRecognitionEngine.CreateForm for Forms.

Forms attributes data will be updated with the changes you made to the form attributes such as addition of a page or deletion of a page once the attributes is closed using either FormRecognitionEngine.CloseMasterForm for Master Form attributes or FormRecognitionEngine.CloseForm for Form attributes.

Once you finish modifying the form's attributes close it to reflect your changes.

SetData is useful to set the loaded attributes data.

Example
C#
using Leadtools.Forms.Common; 
using Leadtools.Forms.Recognition; 
using Leadtools.Codecs; 
 
/// This method loads the specified master form attributes. 
public FormRecognitionAttributes LoadMasterFormAttributes(string attributesFileName) 
{ 
   byte[] formData; 
   formData = File.ReadAllBytes(attributesFileName); 
   FormRecognitionAttributes attributes = new FormRecognitionAttributes(); 
   attributes.SetData(formData); 
   return attributes; 
} 
Requirements

Target Platforms

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

Leadtools.Forms.Recognition Assembly

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