Click or drag to resize

RecentlyUsedCache Class

ProgressMonitor is an interface that an application can use to indicate the progress of a lengthy operation (such as PDFDoc.Save()). ProgressMonitor has a range and a current position. The range represents the entire duration of the operation, and the current position represents the progress the application has made toward completing the operation.
RecentlyUsedCache RecentlyUsedCache is a persistent cache that provides thumbnails for recently used documents in PDFNet. The cache is stored in the PDFNet Resources folder, which can be set by calling PDFNet::SetResourcePath. The cache will be used by any PDFNet process that uses the resource path. If more than one PDFNet process is running concurrently, the first process to acquire a lock on the cache will use it. Subsequent processes will not read or modify the cache. Recently used cache will track the order of N recently used documents, and store references to generated PNG thumbnails for those documents. Most of this functionality happens 'magically', without any necessary user action.
Inheritance Hierarchy
SystemObject
  pdftron.CommonRecentlyUsedCache

Namespace:  pdftron.Common
Assembly:  pdftron (in pdftron.dll) Version: 255.255.255.255
Syntax
public sealed class RecentlyUsedCache

The RecentlyUsedCache type exposes the following members.

Constructors
  NameDescription
Public methodRecentlyUsedCache
Initializes a new instance of the RecentlyUsedCache class
Top
Methods
  NameDescription
Public methodStatic memberAccessDocument
Marks the document as having been accessed. This happens implicitly when calling PDFViewCtrl.SetDoc, but depending on your use case, you may also want to call it explicitly.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodStatic memberGetBitmapPathIfExists
Get the path to the thumbnail PNG associated with the document. Even if the document is in the recently accessed list, there is no guarantee it will have an associated PNG.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodStatic memberInitializeRecentlyUsedCache
Initialize the Recently used cache with the provided limits. If the cache already exists, it will shrink to conform to these limits immediately
Public methodStatic memberRemoveDocument
Remove the specified document from the recently used list.
Public methodStatic memberResetCache
Blast away the cache from the disk completely, removing any thumbnails and recently used state. You may want to do this if you detect some kind of corruption, or if the user wants to clear out disk space used by your application.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also