Leadtools.Web Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
Clear Method
See Also  Example
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 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also