Accusoft.FormFix5.Net - Updated
ReadDataItem Event (FormModel)




Accusoft.FormFixSdk Namespace > FormModel Class : ReadDataItem Event
An event for reading a data item from the persistent storage.
Syntax
'Declaration
 
Public Event ReadDataItem As DataItemEventHandler
'Usage
 
Dim instance As FormModel
Dim handler As DataItemEventHandler
 
AddHandler instance.ReadDataItem, handler
public event DataItemEventHandler ReadDataItem
public: __event DataItemEventHandler* ReadDataItem
public:
event DataItemEventHandler^ ReadDataItem
Event Data

The event handler receives an argument of type DataItemEventArgs containing data related to this event. The following DataItemEventArgs properties provide information specific to this event.

PropertyDescription
The content of the data item to read or write.  
The type of the data item to read or write.  
Remarks

This object uses this event to read a data item from persistent storage. The data item will generally represent the saved result of analyzing a form image. Users of FormFix are encouraged to implement handlers for this event and the WriteDataItem event in order to maximize FormFix's built-in optimizations.

The event handler should load the data item of the specified Type from persistent storage and set its value to the Content propery of the event args. The the type of the data item in persistent storage was noted by the DataItemEventArgs supplied to the WriteDataItem event handler that originally wrote the data item to persistent storage.

See Also