←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; 
 
public void ImageViewerSelectItemsInteractiveMode_Example() 
{ 
   _imageViewer.InteractiveModes.BeginUpdate(); 
   _imageViewer.InteractiveModes.Add(new ImageViewerSelectItemsInteractiveMode { IsEnabled = false }); 
   _imageViewer.InteractiveModes.EndUpdate(); 
   _imageViewer.Items.GetSelected(); 
 
   foreach (var interactiveMode in _imageViewer.InteractiveModes) 
   { 
      ImageViewerSelectItemsInteractiveMode selectionMode = interactiveMode as ImageViewerSelectItemsInteractiveMode; 
      if (selectionMode != null) 
      { 
         selectionMode.SelectionMode = ImageViewerSelectionMode.Multi; 
      } 
   } 
} 
Requirements

Target Platforms

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

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