This event is generated when the mouse is moved over a thumbnail image in the Thumbnail Control.

[Visual Basic] Public Event MouseMoveOnThumbnail As ThumbnailEventHandler
[C#] public event ThumbnailEventHandler MouseMoveOnThumbnail;

Event Data

The event handler retrieves arguments of type ThumbnailEventArgs

Explanation

The MouseMoveOnThumbnail event is generated when the mouse is moved over a thumbnail image in the Thumbnail Control. If the thumbnail image is not displayed on the thumbnail control then this event is not generated. ]

Information about files loaded during this event can be referred to within the ThumbnailLoadEventArgs arguments.

Regarding properties for the ThumbnailEventArgs class

When the thumbnail image isn't displayed into the thumbnail frame that was moved over with the mouse, the DirectoryName and FileName parameters will return empty string and theImageNumber will return -1.

When multi-page image files are loaded, the page number is appended to the FileName parameter (If the page number is 0 then it is omitted).

Example: When page 2 of the file ABC.TIF is loaded into the thumbnail control, the FileName parameter will return the string "ABC.TIF 2"

Example

Displays the filename of the destination cell

[Visual Basic.NET]
Private Sub
Thumbnail1_MouseMoveOnThumbnail(ByVal sender As Object, ByVal e As Newtone.ImageKit.Wpf.ThumbnailEventArgs) Handles Thumbnail1.MouseMoveOnThumbnail If e.ImageNumber
    = -1 Then Exit Sub ' disabled  cell Label1.Text
    = e.FileName; End
Sub [Visual

C#.NET] private
void thumbnail1_MouseMoveOnThumbnail(object sender, Newtone.ImageKit.Wpf.ThumbnailEventArgs e) {
if
    (e.ImageNumber == -1) return; //  disabled cell
    label1.Text = e.FileName;
}

See Also

Thumbnail Members | Newtone.ImageKit.Wpf.Thumbnail

 

The ImageKit WPF is created by Newtone Corporation