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

EnsureVisible Method

Example 





The thumbnail item to scroll into view.
Ensures that the specified thumbnail item is visible within the control, scrolling the contents of the control if necessary.
Syntax
public void EnsureVisible( 
   int thumbIndex
)
'Declaration
 
Public Sub EnsureVisible( _
   ByVal thumbIndex As Integer _
) 
'Usage
 
Dim instance As WebThumbnailViewer
Dim thumbIndex As Integer
 
instance.EnsureVisible(thumbIndex)
public void EnsureVisible( 
   int thumbIndex
)
 function Leadtools.Web.Controls.WebThumbnailViewer.EnsureVisible( 
   thumbIndex 
)
public:
void EnsureVisible( 
   int thumbIndex
) 

Parameters

thumbIndex
The thumbnail item to scroll into view.
Remarks
When you call this method the control will check if the thumbnail item referenced by thumbIndex is visible if it is visible nothing will change, but if not the control will scroll to this thumbnail item to make it visible.
Example
 
Public Sub WebThumbnailViewer_EnsureVisible(ByVal webThumbnailViewer As WebThumbnailViewer)
   If webThumbnailViewer.SelectedIndex <> -1 Then
      webThumbnailViewer.EnsureVisible(webThumbnailViewer.SelectedIndex)
   End If
End Sub
public void WebThumbnailViewer_EnsureVisible(WebThumbnailViewer webThumbnailViewer)
{
   if (webThumbnailViewer.SelectedIndex != -1)
      webThumbnailViewer.EnsureVisible(webThumbnailViewer.SelectedIndex);
}
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

 

 


Products | Support | Contact Us | Copyright Notices

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