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 : EnsureVisible Method |
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 )
This example ensures that the currently selected thumbnail is visible.
Imports Leadtools Imports Leadtools.Codecs Imports Leadtools.ImageProcessing Imports Leadtools.Web.Controls Public Sub WebThumbnailViewer_EnsureVisible(ByVal webThumbnailViewer As WebThumbnailViewer) If webThumbnailViewer.SelectedIndex <> -1 Then webThumbnailViewer.EnsureVisible(webThumbnailViewer.SelectedIndex) End If End Sub
using Leadtools; using Leadtools.Codecs; using Leadtools.Web.Controls; public void WebThumbnailViewer_EnsureVisible(WebThumbnailViewer webThumbnailViewer) { if (webThumbnailViewer.SelectedIndex != -1) webThumbnailViewer.EnsureVisible(webThumbnailViewer.SelectedIndex); }