LEADTOOLS WebForms and AJAX (Leadtools.Web assembly)

SetThumbnailText Method

Show in webframe
Example 





the index of the thumbnail to be updated.
the new thumbnail text.
Sets the thumbnail text for a specific thumbnail element.
Syntax
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
) 

Parameters

thumbIndex
the index of the thumbnail to be updated.
thumbText
the new thumbnail text.
Example
Copy Code  
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));
   }
}
Requirements

Target Platforms

See Also

Reference

WebThumbnailViewer Class
WebThumbnailViewer Members
WebThumbnailViewer Client Class

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.