PDFium Component Docs

TPdfThumbnailView клас

Unit: FPdfThumbnail
Описує елемент API TPdfThumbnailView у PDFiumPas і пояснює, коли використовувати цей член API

Syntax

type TPdfThumbnailView = class(TCustomControl) ... end;

Methods

MemberDescription
CreateInitializes default thumbnail sizing, colors, scrolling, and selection state
DestroyReleases internal thumbnail-control resources

Properties

PropertyTypeDefaultDescription
PdfTPdfnilDocument component used for page count and thumbnail rendering
CurrentPageIndexInteger0One-based selected page index; 0 means no page is selected
ThumbnailWidthInteger120Target thumbnail width, clamped to the supported range
ThumbnailHeightInteger160Target thumbnail height, clamped to the supported range
TextColorTColorclBlackPage-number caption color
HoverColorTColorclMoneyGreenRow highlight color under the hovered thumbnail
SelectionColorTColorclHighlightRow highlight color for CurrentPageIndex
BorderColorTColorclGrayThumbnail border color
ColorTColorclWhiteControl background color inherited from TCustomControl

Events

EventTypeDescription
OnPageClickTPdfThumbnailClickEventRaised when the user left-clicks a thumbnail row; APageIndex is one-based

Description

Assign Pdf to the same TPdf instance used by a viewer, then keep CurrentPageIndex synchronized with the active page

The control owns its scrolling and repaints page thumbnails on demand, using hover and selection colors to show pointer and current-page state

Handle OnPageClick to update a paired TPdfView.PageNumber or any other page-navigation surface

Example

ThumbnailView.Pdf := Pdf1;
ThumbnailView.CurrentPageIndex := PdfView1.PageNumber;
ThumbnailView.OnPageClick := ThumbnailPageClick;

See Also

TPdfView, TPdfView.PageNumber