Gets or sets the location of the auto-scroll position.
public virtual Point ScrollPosition {get; set;}
Public Overridable Property ScrollPosition As Point
A Point object that represents the auto-scroll position in pixels.
This displays the scroll positions after each zoom
Imports Leadtools.WinForms
Imports Leadtools
Imports Leadtools.Codecs
Imports Leadtools.ImageProcessing.Color
Imports Leadtools.Drawing
Private Sub viewer_ScrollViewer(ByVal sender As Object, ByVal e As EventArgs)
Dim viewer As RasterImageViewer = CType(IIf(TypeOf sender Is RasterImageViewer, sender, Nothing), RasterImageViewer)
Dim s As String = String.Format("ScrollPosition: {0}", viewer.ScrollPosition)
Console.WriteLine(s)
End Sub
Public Sub RasterImageViewer_ScrollViewer(ByVal viewer As RasterImageViewer)
AddHandler viewer.ScrollViewer, AddressOf viewer_ScrollViewer
MessageBox.Show("Scroll the image and the 'ScrollViewer' event gets fired")
' or do something in code to cause a scroll
End Sub
using Leadtools.WinForms;
using Leadtools;
using Leadtools.Codecs;
using Leadtools.ImageProcessing.Color;
using Leadtools.Drawing;
private void viewer_ScrollViewer(object sender, EventArgs e)
{
RasterImageViewer viewer = sender as RasterImageViewer;
string s = string.Format("ScrollPosition: {0}", viewer.ScrollPosition);
Console.WriteLine(s);
}
public void RasterImageViewer_ScrollViewer(RasterImageViewer viewer)
{
viewer.ScrollViewer += new EventHandler(viewer_ScrollViewer);
MessageBox.Show("Scroll the image and the 'ScrollViewer' event gets fired");
// or do something in code to cause a scroll
}
Products |
Support |
Feedback: ScrollPosition Property - Leadtools.WinForms |
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.