←Select platform

IsHovered Property

Summary

Indicates whether the item is in a hovered state.

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

Property Value

true if this item is in a hovered state, otherwise; false. Default value is false.

Remarks

Hovered items (the value of IsHovered is true) may be rendered differently than non-selected items as described in Image Viewer Appearance.

ImageViewerSelectItemsInteractiveMode and ImageViewerActiveItemInteractiveMode modify the hover state of items for UI indication on the item under the mouse or touch.

For more information, refer Image Viewer Items.

Example
C#
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
using Leadtools.Svg; 
 
_imageViewer.BeginUpdate(); 
_imageViewer.Items[0].IsHovered = !_imageViewer.Items[0].IsHovered; 
Debug.WriteLine(string.Format("_imageViewer.Items[0].IsHovered = {0}", _imageViewer.Items[0].IsHovered)); 
_imageViewer.EndUpdate(); 
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.