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; publicvoid 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 PublicSub WebThumbnailViewer_SetThumbnailText(ByVal webThumbnailViewer As WebThumbnailViewer) Dim thumbInfo As ThumbnailInfo For i AsInteger = 0 To webThumbnailViewer.CountStep 1 thumbInfo = webThumbnailViewer.GetThumbnailInfo(i) webThumbnailViewer.SetThumbnailText(i, String.Format("Page{0}", thumbInfo.Page)) Next i EndSub