Ensures that the specified thumbnail item is visible within the control, scrolling the contents of the control if necessary.
public void EnsureVisible(int thumbIndex)
Public Sub EnsureVisible( _ByVal thumbIndex As Integer _)
public:void EnsureVisible(int thumbIndex)
thumbIndex
The thumbnail item to scroll into view.
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.
This example ensures that the currently selected thumbnail is visible.
using Leadtools;using Leadtools.Codecs;using Leadtools.Web.Controls;public void WebThumbnailViewer_EnsureVisible(WebThumbnailViewer webThumbnailViewer){if (webThumbnailViewer.SelectedIndex != -1)webThumbnailViewer.EnsureVisible(webThumbnailViewer.SelectedIndex);}
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.ImageProcessingImports Leadtools.Web.Controls''' <!--Leadtools.Web.Controls.WebImageViewer.ImageUrl-->''' <!--Leadtools.Web.Controls.WebImageViewer.ImageUrl-->''' <!--Leadtools.Web.Controls.WebImageViewer.OpenImageUrl-->''' <!--Leadtools.Web.Controls.WebImageViewer.OpenImageUrl-->''' <!--Leadtools.Web.Controls.WebImageViewer.ScrollBarVisible-->''' <!--Leadtools.Web.Controls.WebImageViewer.ScrollBarVisible-->''' <!--Leadtools.Web.Controls.WebImageViewer.ApplyCommand-->''' <!--Leadtools.Web.Controls.WebImageViewer.ApplyCommand-->''' <!--Leadtools.Web.Controls.WebImageViewer.PropertyChanged-->''' <!--Leadtools.Web.Controls.WebImageViewer.PropertyChanged-->''' <!--Leadtools.Web.Controls.WebThumbnailViewer.AddWithText-->''' <!--Leadtools.Web.Controls.WebThumbnailViewer.AddWithText-->''' <!--Leadtools.Web.Controls.WebThumbnailViewer.InsertWithText-->''' <!--Leadtools.Web.Controls.WebThumbnailViewer.InsertWithText-->''' <!--Leadtools.Web.Controls.WebThumbnailViewer.EnsureVisible-->''' <!--Leadtools.Web.Controls.WebThumbnailViewer.EnsureVisible-->''' <!--Leadtools.Web.Controls.WebThumbnailViewer.GetThumbnailImageByText-->''' <!--Leadtools.Web.Controls.WebThumbnailViewer.GetThumbnailImageByText-->''' <!--Leadtools.Web.Controls.WebThumbnailViewer.SetThumbnailText-->''' <!--Leadtools.Web.Controls.WebThumbnailViewer.SetThumbnailText-->Public Sub WebThumbnailViewer_EnsureVisible(ByVal webThumbnailViewer As WebThumbnailViewer)If webThumbnailViewer.SelectedIndex <> -1 ThenwebThumbnailViewer.EnsureVisible(webThumbnailViewer.SelectedIndex)End IfEnd Sub
Raster .NET | C API | C++ Class Library | JavaScript HTML5
Document .NET | C API | C++ Class Library | JavaScript HTML5
Medical .NET | C API | C++ Class Library | JavaScript HTML5
Medical Web Viewer .NET
