VintaSoft Imaging .NET SDK 15.1: Documentation for .NET developer
Vintasoft.Imaging.UI Namespace / ThumbnailViewer Class / ThumbnailsLoadingProgress Event
Syntax Remarks Example Requirements SeeAlso
In This Topic
ThumbnailsLoadingProgress Event (ThumbnailViewer)
In This Topic
Occurs when the loading progress of thumbnails is changed.
Syntax
'Declaration

<DescriptionAttribute("Occurs when the loading progress of thumbnails is changed.")>
<CategoryAttribute("VintaSoft")>
Public Event ThumbnailsLoadingProgress As System.EventHandler(Of ThumbnailsLoadingProgressEventArgs)

[Description("Occurs when the loading progress of thumbnails is changed.")]
[Category("VintaSoft")]
public event System.EventHandler<ThumbnailsLoadingProgressEventArgs> ThumbnailsLoadingProgress

Remarks

Adding of thumbnails occurs in a background thread.

This event is thread safe.

Example


Private _thumbnailViewer As Vintasoft.Imaging.UI.ThumbnailViewer = Nothing

Private Sub AddImage()
    ' add handler to the ThumbnailsLoadingProgress event of thumbnail viewer
    AddHandler _thumbnailViewer.ThumbnailsLoadingProgress, New System.EventHandler(Of Vintasoft.Imaging.UI.ThumbnailsLoadingProgressEventArgs)(AddressOf _thumbnailViewer_ThumbnailsLoadingProgress)
    ' add image to the viewer
    _thumbnailViewer.Images.Add("multipage.tif")
End Sub

Private Sub _thumbnailViewer_ThumbnailsLoadingProgress(sender As Object, e As Vintasoft.Imaging.UI.ThumbnailsLoadingProgressEventArgs)
    ' update progress info using e.Progress property
    ' ...
End Sub


Vintasoft.Imaging.UI.ThumbnailViewer _thumbnailViewer = null;

private void AddImage()
{
    // add handler to the ThumbnailsLoadingProgress event of thumbnail viewer
    _thumbnailViewer.ThumbnailsLoadingProgress += 
        new System.EventHandler<Vintasoft.Imaging.UI.ThumbnailsLoadingProgressEventArgs>(_thumbnailViewer_ThumbnailsLoadingProgress);
    // add image to the viewer
    _thumbnailViewer.Images.Add("multipage.tif");
}

void _thumbnailViewer_ThumbnailsLoadingProgress(object sender, Vintasoft.Imaging.UI.ThumbnailsLoadingProgressEventArgs e)
{
    // update progress info using e.Progress property
    // ...
}

Requirements

Target Platforms: .NET 10; .NET 9; .NET 8; .NET 7; .NET 6; .NET Framework 4.8, 4.7, 4.6, 4.5, 4.0, 3.5

See Also