←Select platform

HasCache Property (Document)

Summary

Indicates whether this Document is using the cache.

Syntax

C#
VB
Java
C++
public bool HasCache { get; }
Public ReadOnly Property HasCache() As Boolean 
   Get 
public:  
   property bool HasCache 
   { 
      bool get() 
   } 
public boolean hasCache()

Property Value

true if this document uses the cache system, otherwise; false.

Remarks

Documents can contain large number of pages and huge amount of data. Storing all this data in the physical memory is not feasible in most situations. Therefore, the Document class was designed to use an external caching system to store the modified. Refer to DocumentFactory.Cache for more information.

HasCache determines if this document is using the cache system. SaveToCache can be used to save a document to the cache and re-loading it using DocumentFactory.LoadFromCache. AutoDeleteFromCache and AutoSaveToCache can be used to determine what happens to the cache data associated with the document when it is disposed.

Example

For an example, refer to Document.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Documents Assembly
Click or drag to resize