LEADTOOLS WebForms and AJAX (Leadtools.Web assembly)
LEAD Technologies, Inc

SetThumbnailText Method

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
)
 function Leadtools.Web.Controls.WebThumbnailViewer.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
 
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
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: 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

See Also

Reference

WebThumbnailViewer Class
WebThumbnailViewer Members
WebThumbnailViewer Client Class

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.