RedrawAllThumbs Method

The RedrawAllThumbs method Clears the contents of the thumbnail control and redraws all the thumbnails.

Syntax

C++:

HRESULT RedrawAllThumbs ()

C#:

void RedrawAllThumbs ()

VB:

Sub RedrawAllThumbs ()

 

Example in C#:

The following example shows the initialization of the Creator control and the thumbnail control in the constructor of a Windows form. After initialization, RedrawAllThumbs is called to visually update the thumbnail control.

 

// Declaration of the two variables:

// private AxACPDFCREACTIVEX.AxPDFCreactiveX pdfCtrl;

// private AxACPDFCREXTLib.AxacThumbnailCtrl thumbCtrl;

public ThumDemoForm()

{

InitializeComponent();

pdfCtrl.SetLicenseKey(Lic.GetLicenseOwner(), Lic.GetLicenseKey());

// Open a sample PDF file into the creator control.

pdfCtrl.Open( @".\files\PageCount.pdf", "" );

pdfCtrl.ZoomFactor = 50;

// This will cause the thumbail control to read

// the pages contained in the pdf control.

thumbCtrl.Initialize( pdfCtrl.GetOcx() );

// Force a refresh on the thumbnail control.

thumbCtrl.RedrawAllThumbs();

}