←Select platform

Clear Method

Summary

Removes all thumbnail elements from the WebThumbnailViewer control.

Syntax

C#
VB
C++
public void Clear() 
  
Public Sub Clear()  
public: 
void Clear();  

Example

This example clears the thumbnails if there any.

C#
VB
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.Web.Controls; 
 
public void WebThumbnailViewer_Clear(WebThumbnailViewer webThumbnailViewer) 
{ 
   if (webThumbnailViewer.Count > 1) 
   { 
      webThumbnailViewer.Clear(); 
   } 
} 
Imports Leadtools 
Imports Leadtools.Codecs 
Imports Leadtools.Web.Controls 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Add--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Add--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Insert--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Insert--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.ThumbsDirection--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.ThumbsDirection--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Clear--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.Clear--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.GetThumbnailInfo--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.GetThumbnailInfo--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.PropertyChanged--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.PropertyChanged--> 
 
Public Sub WebThumbnailViewer_Clear(ByVal webThumbnailViewer As WebThumbnailViewer) 
   If (webThumbnailViewer.Count > 1) Then 
      webThumbnailViewer.Clear() 
   End If 
End Sub 

Requirements

Target Platforms

Help Version 19.0.2017.10.27
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Web Assembly