←Select platform

ImageViewerSelectItemsInteractiveMode Constructor

Summary

Initializes a new instance of ImageViewerSelectItemsInteractiveMode.

Remarks

This constructor changes the following default values:

Member Description

AutoItemMode

Set to ImageViewerAutoItemMode.Never since this mode does not work item.

ItemPart

Set to ImageViewerItemPart.Item.

IsDragMouseWheelEnabled

Set to false to disable firing drag events using the mouse wheel.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
 
_imageViewer.InteractiveModes.BeginUpdate(); 
_imageViewer.InteractiveModes.Add(new ImageViewerSelectItemsInteractiveMode { IsEnabled = false }); 
_imageViewer.InteractiveModes.EndUpdate(); 
 
foreach (var interactiveMode in _imageViewer.InteractiveModes) 
{ 
   ImageViewerSelectItemsInteractiveMode selectionMode = interactiveMode as ImageViewerSelectItemsInteractiveMode; 
   if (selectionMode != null) 
   { 
      selectionMode.SelectionMode = ImageViewerSelectionMode.Multi; 
   } 
} 
Requirements

Target Platforms

Help Version 22.0.2023.1.24
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.