InsertThumbs Method

Example-VB

Informs the Thumbnail control that pages have been inserted into the currently displayed image file.

Available With

Ö Imaging for Windows Professional Edition V1.0, V1.1, and V2.0
Ö Imaging for Windows 95 and 98
Ö Imaging for Windows NT 4.0

Applies To

Image Thumbnail control

Syntax

object.InsertThumbs InsertBeforeThumb,InsertCount

Arguments

Parameter Data Type Description

InsertBeforeThumb Long Optional. The page number of the thumbnail before which the new thumbnails will be inserted.

A value of 1 means the thumbnails will be inserted before the first page.

A value of ThumbCount+1 means the thumbnails will be inserted after the last page.

If InsertBeforeThumb is not specified, the default value of ThumbCount+1 is used, and the InsertCount parameter cannot be set.

InsertCount Long Optional. The number of pages inserted.

If a value is not specified, the default value of 1 is used.


Remarks

The pages must be inserted into the image file itself prior to calling this method. This can be done by first calling the Admin control’s Insert method.

InsertThumbs preserves the integrity of the control’s internal mapping of displayed thumbnails and the pages of the specified image file. If pages are inserted into the displayed image file and this method is not called, the thumbnails displayed will not reflect the change.

This method refreshes the control’s display.