←Select platform

ImageViewerItemChangedReason Enumeration

Summary

Describes the reason why an item has been changed in the ImageViewer.

Syntax
C#
C++/CLI
public enum ImageViewerItemChangedReason 
public enum class ImageViewerItemChangedReason sealed 
Members

0

Size

(0) The item size has changed

1

Transform

(1) The item transformation has changed

2

Enabled

(2) The item IsEnabled value has changed

3

Selected

(3) The item IsSelected value has changed

4

Hovered

(4) The item IsHovered value has changed

5

Text

(5) The item Text value has changed

6

Url

(6) The item Url value has changed

7

Drop

(7) The item was the target of a drag/drop and the image data has changed

8

Drag

(8) The item was the source of a move drag/drop operation and the image data has changed

9

Image

(9) The item Image or SvgDocument value has changed.

10

ImageChanged

(10) The item Image has changed. This is when the image itself has changed, for example, the user inverted or flipped the image data.

11

Floater

(11) The item Floater value has changed

12

FloaterTransform

(12) The item FloaterTransform value has changed

13

BackImageUrl

(13) The item BackImageUrl value has changed

14

BackImage

(14) The item BackImage value has changed

15

Visibility

(14) The item IsVisible value has changed

Remarks

For more information, refer to ImageViewer.ItemChanged.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
 
 
public void ImageViewerItemChanged_Example() 
{ 
   _imageViewer.ItemChanged += (sender, e) => 
   { 
      var item = e.Item; 
      var sb = new StringBuilder(); 
      sb.AppendFormat("ItemChanged:{0} Reason:{1} Size:{2} Res:{3}", _imageViewer.Items.IndexOf(item), e.Reason, item.Size, item.Resolution); 
      if (item.Image != null) 
         sb.AppendFormat(" Image: {0}bpp {1} by {2}", item.Image.BitsPerPixel, item.Image.Width, item.Image.Height); 
      else 
         sb.AppendFormat(" Image: null"); 
      Debug.WriteLine(sb.ToString()); 
 
      if (item.Url != null) 
         Debug.WriteLine("  Url:" + item.Url.ToString()); 
   }; 
} 
Requirements

Target Platforms

See Also

Reference

Leadtools.Controls Namespace

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.