VintaSoft Imaging .NET SDK v8.7
Vintasoft.Imaging.UI Namespace / ThumbnailViewer Class / ThumbnailsLoadingProgress Event
Example



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 EventHandler(Of ThumbnailsLoadingProgressEventArgs)
    [Description("Occurs when the loading progress of thumbnails is changed.")]
    [Category("VintaSoft")]
    public event EventHandler<ThumbnailsLoadingProgressEventArgs> ThumbnailsLoadingProgress
    [Description("Occurs when the loading progress of thumbnails is changed.")]
    [Category("VintaSoft")]
    public: __event EventHandler<ThumbnailsLoadingProgressEventArgs*>* ThumbnailsLoadingProgress
    [Description("Occurs when the loading progress of thumbnails is changed.")]
    [Category("VintaSoft")]
    public:
    event EventHandler<ThumbnailsLoadingProgressEventArgs^>^ ThumbnailsLoadingProgress
    Event Data

    The event handler receives an argument of type ThumbnailsLoadingProgressEventArgs containing data related to this event. The following ThumbnailsLoadingProgressEventArgs properties provide information specific to this event.

    PropertyDescription
    Gets the progress of thumbnails loading.  
    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: Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, Windows Server 2012, Windows Server 2008, Windows Server 2003

    See Also