Gets or sets the location of the auto-scroll position.
public virtual Point ScrollPosition { get; set; }
public:
virtual property Point^ ScrollPosition
{
Point^ get()
void set(Point^ value)
}
A Point object that represents the auto-scroll position in pixels.
This displays the scroll positions after each zoom
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
}
Help Collections
Raster .NET | C API | C++ Class Library | HTML5 JavaScript
Document .NET | C API | C++ Class Library | HTML5 JavaScript
Medical .NET | C API | C++ Class Library | HTML5 JavaScript
Medical Web Viewer .NET
Multimedia
Direct Show .NET | C API | Filters
Media Foundation .NET | C API | Transforms
Supported Platforms
.NET, Java, Android, and iOS/macOS Assemblies
Imaging, Medical, and Document
C API/C++ Class Libraries
Imaging, Medical, and Document
HTML5 JavaScript Libraries
Imaging, Medical, and Document
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.