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