Leadtools.Web.Controls Namespace > WebThumbnailViewer Class > Insert Method : Insert(String,Int32,Int32,Int32) Method |
'Declaration Public Overloads Sub Insert( _ ByVal imageUrl As String, _ ByVal firstPage As Integer, _ ByVal lastPage As Integer, _ ByVal thumbIndex As Integer _ )
'Usage Dim instance As WebThumbnailViewer Dim imageUrl As String Dim firstPage As Integer Dim lastPage As Integer Dim thumbIndex As Integer instance.Insert(imageUrl, firstPage, lastPage, thumbIndex)
function Leadtools.Web.Controls.WebThumbnailViewer.Insert(String,Int32,Int32,Int32)( imageUrl , firstPage , lastPage , thumbIndex )
Public Sub WebThumbnailViewer_Insert(ByVal webThumbnailViewer As WebThumbnailViewer) '' Check if there is at least one thumbnail to replace. If (WebThumbnailViewer.Count > 1) Then '' Remove the first thumbnail image. WebThumbnailViewer.Remove(0, 0) ' insert a new image into as the first thumbnail. webThumbnailViewer.Insert("Resources\image1.jpg", 1, 1, 0) End If End Sub
public void WebThumbnailViewer_Insert(WebThumbnailViewer webThumbnailViewer) { // Check if there is at least one thumbnail to replace. if(webThumbnailViewer.Count > 1) { // Remove the first thumbnail image. webThumbnailViewer.Remove(0, 0); // insert a new image into as the first thumbnail. webThumbnailViewer.Insert(@"Resources\image1.jpg", 1, 1, 0); } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2