←Select platform

SetThumbnailText Method

Summary

Sets the thumbnail text for a specific thumbnail element.

Syntax

C#
VB
C++
public void SetThumbnailText( 
   int thumbIndex, 
   string thumbText 
) 
  
Public Sub SetThumbnailText( _ 
   ByVal thumbIndex As Integer, _ 
   ByVal thumbText As String _ 
)  
public: 
void SetThumbnailText(  
   int thumbIndex, 
   String^ thumbText 
)  

Parameters

thumbIndex
the index of the thumbnail to be updated.

thumbText
the new thumbnail text.

Example

This example set the thumbnail elements text.

C#
VB
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.Web.Controls; 
 
public void WebThumbnailViewer_SetThumbnailText(WebThumbnailViewer webThumbnailViewer) 
{ 
   ThumbnailInfo thumbInfo; 
   for (int i = 0; i < webThumbnailViewer.Count; i++) 
   { 
      thumbInfo = webThumbnailViewer.GetThumbnailInfo(i); 
 
      webThumbnailViewer.SetThumbnailText(i, string.Format("Page{0}", thumbInfo.Page)); 
   } 
} 
Imports Leadtools 
Imports Leadtools.Codecs 
Imports Leadtools.ImageProcessing 
Imports Leadtools.Web.Controls 
   ''' <!--Leadtools.Web.Controls.WebImageViewer.ImageUrl--> 
   ''' <!--Leadtools.Web.Controls.WebImageViewer.ImageUrl--> 
   ''' <!--Leadtools.Web.Controls.WebImageViewer.OpenImageUrl--> 
   ''' <!--Leadtools.Web.Controls.WebImageViewer.OpenImageUrl--> 
   ''' <!--Leadtools.Web.Controls.WebImageViewer.ScrollBarVisible--> 
   ''' <!--Leadtools.Web.Controls.WebImageViewer.ScrollBarVisible--> 
   ''' <!--Leadtools.Web.Controls.WebImageViewer.ApplyCommand--> 
   ''' <!--Leadtools.Web.Controls.WebImageViewer.ApplyCommand--> 
   ''' <!--Leadtools.Web.Controls.WebImageViewer.PropertyChanged--> 
   ''' <!--Leadtools.Web.Controls.WebImageViewer.PropertyChanged--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.AddWithText--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.AddWithText--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.InsertWithText--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.InsertWithText--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.EnsureVisible--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.EnsureVisible--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.GetThumbnailImageByText--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.GetThumbnailImageByText--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.SetThumbnailText--> 
   ''' <!--Leadtools.Web.Controls.WebThumbnailViewer.SetThumbnailText--> 
 
Public Sub WebThumbnailViewer_SetThumbnailText(ByVal webThumbnailViewer As WebThumbnailViewer) 
   Dim thumbInfo As ThumbnailInfo 
   For i As Integer = 0 To webThumbnailViewer.Count Step 1 
      thumbInfo = webThumbnailViewer.GetThumbnailInfo(i) 
 
      webThumbnailViewer.SetThumbnailText(i, String.Format("Page{0}", thumbInfo.Page)) 
   Next i 
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