The SetData Method is available as an add-on to the LEADTOOLS Document and Medical Imaging toolkits.
- data
- Array of bytes containing the encoded attributes.
Visual Basic (Usage) | ![]() |
---|---|
Dim instance As FormRecognitionAttributes Dim data() As Byte instance.SetData(data) |
C++/CLI | |
---|---|
public: void SetData( array<byte>^ data ) |
Parameters
- data
- Array of bytes containing the encoded attributes.
Visual Basic | ![]() |
---|---|
''' This method loads the specified master form attributes. Public Function LoadMasterFormAttributes(ByVal attributesFileName As String) As FormRecognitionAttributes Dim formData As Byte() formData = File.ReadAllBytes(attributesFileName) Dim attributes As FormRecognitionAttributes = New FormRecognitionAttributes() attributes.SetData(formData) Return attributes End Function |
C# | ![]() |
---|---|
/// 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; } |
To start modifying the form's attributes you have to open it using FormRecognitionEngine.OpenMasterForm for Master Forms or FormRecognitionEngine.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.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7