Enables or disables automatically showing the scroll bars if the image width or height exceeds the control client area.
public bool ScrollBarVisible {get; set;}Public Property ScrollBarVisible As Booleantrue, automatically show the scroll bars; false, hide the scroll bars.
Default value is true.
This example disables the scrollbars, centers the image and uses the panning features in the left mouse button to scroll the image.
Imports LeadtoolsImports Leadtools.CodecsImports Leadtools.ImageProcessingImports Leadtools.Web.Controls<TestMethod()> _Public Sub WebImageViewer_ScrollBarVisible()Dim mainWebImageViewer As WebImageViewer = New WebImageViewer()AddHandler mainWebImageViewer.ImageChanged, AddressOf mainWebImageViewer_ImageChangedmainWebImageViewer.MouseInteractiveMode.LeftButton = ImageViewerMouseInteractiveMode.Pan'' disable the scrollbarsmainWebImageViewer.ScrollBarVisible = False'' open "image1.tif"mainWebImageViewer.OpenImageUrl("Resources\MultiPage.tif")'' display the image with dpimainWebImageViewer.UseDpi = False'' scroll the image to the center point.mainWebImageViewer.ScrollPosition = New Point(CType(mainWebImageViewer.MaxScrollPosition.X / 2, Integer), CType(mainWebImageViewer.MaxScrollPosition.Y / 2, Integer))RemoveHandler mainWebImageViewer.ImageChanged, AddressOf mainWebImageViewer_ImageChangedEnd SubSub mainWebImageViewer_ImageChanged(ByVal sender As Object, ByVal e As EventArgs)'' "New Image is loaded"...End Sub
using Leadtools;using Leadtools.Codecs;using Leadtools.Web.Controls;using Leadtools.ImageProcessing;public void WebImageViewer_ScrollBarVisible(){WebImageViewer mainWebImageViewer = new WebImageViewer();mainWebImageViewer.ImageChanged += new EventHandler(mainWebImageViewer_ImageChanged);mainWebImageViewer.MouseInteractiveMode.LeftButton = ImageViewerMouseInteractiveMode.Pan;// disable the scrollbarsmainWebImageViewer.ScrollBarVisible = false;// open "MultiPage.tif"mainWebImageViewer.OpenImageUrl(@"Resources\MultiPage.tif");// display the image with dpimainWebImageViewer.UseDpi = false;// scroll the image to the center point.mainWebImageViewer.ScrollPosition = new Point(mainWebImageViewer.MaxScrollPosition.X / 2, mainWebImageViewer.MaxScrollPosition.Y / 2);mainWebImageViewer.ImageChanged -= new EventHandler(mainWebImageViewer_ImageChanged);}void mainWebImageViewer_ImageChanged(object sender, EventArgs e){// "New Image is loaded"...}
|
Products |
Support |
Feedback: ScrollBarVisible Property - Leadtools.Web |
Introduction |
Help Version 19.0.2017.3.22
|

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
Your email has been sent to support! Someone should be in touch! If your matter is urgent please come back into chat.
Chat Hours:
Monday - Friday, 8:30am to 6pm ET
Thank you for your feedback!
Please fill out the form again to start a new chat.
All agents are currently offline.
Chat Hours:
Monday - Friday
8:30AM - 6PM EST
To contact us please fill out this form and we will contact you via email.