Mouse button to use for panning.
public MouseButtons MouseButton { get; set; }
public:
property System::Windows::Forms::MouseButtons^ MouseButton
{
System::Windows::Forms::MouseButtons^ get()
void set(System::Windows::Forms::MouseButtons^ value)
}
The mouse button to use for panning. Default value is System.Windows.Forms.MouseButtons.
This value is only used when EnablePan is set to true.
using Leadtools;
using Leadtools.Controls;
using Leadtools.Codecs;
using Leadtools.Drawing;
using Leadtools.ImageProcessing;
using Leadtools.ImageProcessing.Color;
public void ImageViewerPanControl_Example()
{
PictureBox control = new PictureBox();
control.Width = 400;
control.Dock = DockStyle.Left;
_control.Controls.Add(control);
control.BringToFront();
_imageViewer.BringToFront();
ImageViewerPanControl panControl = new ImageViewerPanControl();
panControl.EnablePan = true;
panControl.BorderPen = Pens.Yellow;
//panControl.InsideBrush = new SolidBrush(Color.FromArgb(128, 0, 0, 0));
panControl.OutsideBrush = new SolidBrush(Color.FromArgb(128, 0, 0, 0));
panControl.WorkingCursor = Cursors.Hand;
panControl.Control = control;
panControl.MouseButton = MouseButtons.Left;
panControl.ImageViewer = _imageViewer;
}
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