DocumentDataType Enumeration

Summary

Data type of a LEADDocument.

Syntax
TypeScript
JavaScript
lt.Document.DocumentDataType = { 
   transient: 0, 
   cached: 1, 
   virtual: 2 
} 
lt.Document.DocumentDataType = { 
   transient: 0, 
   cached: 1, 
   virtual: 2 
} 
Members
ValueMemberDescription
transient0The document is created but has not been saved to the cache yet.
cached1The document data is saved in the cache.
virtual2The document is virtual.
Remarks

DocumentDataType is used as the type of LEADDocument.dataType and DocumentPage.dataType properties to determine where the actual original data of the document or page is stored. DocumentViewer uses this value to optimize rendering and not incur unnecessary cache hits.

There are 3 scenarios to consider:

  • When a document is first created or loaded but is not saved in the cache, the data type will be set to DocumentDataType.transient.

  • If a document is saved in the cache, then the data type will be set to DocumentDataType.cached.

  • For a virtual document containing other child documents, the data type will be set to DocumentDataType.virtual.

Requirements

Target Platforms

See Also

Reference

lt.Document Namespace

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

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