Products | Support | Email a link to this topic. | Send comments on this topic. | Back to Introduction - All Topics | Help Version 19.0.5.5
|
Leadtools.Web.Controls Namespace > WebThumbnailViewer Class : SetThumbnailText Method |
public void SetThumbnailText( int thumbIndex, string thumbText )
'Declaration Public Sub SetThumbnailText( _ ByVal thumbIndex As Integer, _ ByVal thumbText As String _ )
'Usage Dim instance As WebThumbnailViewer Dim thumbIndex As Integer Dim thumbText As String instance.SetThumbnailText(thumbIndex, thumbText)
public: void SetThumbnailText( int thumbIndex, String^ thumbText )
This example set the thumbnail elements text.
Imports Leadtools Imports Leadtools.Codecs Imports Leadtools.ImageProcessing Imports Leadtools.Web.Controls 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
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)); } }