LEADTOOLS WebForms and AJAX (Leadtools.Web assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.30
Clear Method
See Also 
Leadtools.Web.Controls Namespace > WebThumbnailViewer Class : Clear Method



Removes all thumbnails elements from the WebThumbnailViewer control.

Syntax

Visual Basic (Declaration) 
Public Sub Clear() 
Visual Basic (Usage)Copy Code
Dim instance As WebThumbnailViewer
 
instance.Clear()
C# 
public void Clear()
C++/CLI 
public:
void Clear(); 

Example

This example clears the thumbnails if there any.

Visual BasicCopy Code
Public Sub WebThumbnailViewer_Clear(ByVal webThumbnailViewer As WebThumbnailViewer)
   If (webThumbnailViewer.Count > 1) Then
      webThumbnailViewer.Clear()
   End If
End Sub
C#Copy Code
public void WebThumbnailViewer_Clear(WebThumbnailViewer webThumbnailViewer)
{
   if(webThumbnailViewer.Count > 1)
   {
      webThumbnailViewer.Clear();
   }
}

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also