This method deletes the specified thumbnail image from Thumbnail Control.

[Visual Basic] Public Function DeleteImage(imageNumber As Integer) As Boolean
[C#] public bool DeleteImage(int imageNumber);

Parameters

imageNumber
     The sequential number of the thumbnail image (starts from 1)

Return Value

Returns True if successful. Returns False if unsuccessful.

Explanation

The DeleteImage method deletes the specified thumbnail image from Thumbnail Control (the actual file remains). If you don't want to display the thumbnail image next time (ex. when reloading it), please delete the actual file after executing this method and when the return value is True.

By setting the sequential number of the thumbnail image into the ArrayImageNumber property prior to executing this method, the actual filename will be set in the ArrayFileName, ArrayPageNumber, and ArrayDirectoryName properties.

See Also

Thumbnail Members | Newtone.ImageKit.Win.Thumbnail

 

The ImageKit.NET3 is created by Newtone Corporation