←Select platform

RemoveEmptyItem Property

Summary

Indicates whether to remove the item if it did not have previous data.

Syntax
C#
C++/CLI
public bool RemoveEmptyItem { get; set; } 
public:  
   property bool RemoveEmptyItem 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true to remove the item if it did not have previous data, otherwise, false. Default value is false.

Remarks

The detailed description refer to ItemError.

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

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.