property TextSnapshotCacheHitCount: Int64; // read only
The counter increments once for every TextPageSnapshot access whose page already holds a valid snapshot. The hit refreshes the page slot in least-recently-use order, touches the entry in the shared cache governor, and returns a deep copy of the retained snapshot
Consumers such as GetStructuredText and the physical-layout GetTextInReadingOrder reuse the same snapshot, so their repeated reads also surface here as hits
The value is cumulative for the lifetime of the TPdf instance and never resets
Reading is guarded by the render lock used by native PDFium page access
Capacity changes, page edits, document reloads, and clears preserve the counter; they change what is retained, not what already happened
Because every return value is a deep copy, a hit never exposes cached strings or arrays to caller mutation
Structured := Pdf.GetStructuredText(1, Options);
Structured := Pdf.GetStructuredText(1, Options);
// The second read is served by one cached snapshot