←Select platform

Is this page helpful?

In this page

TargetItem Property

Summary

The target item for this drop operation.

Syntax
C#
C++/CLI
public ImageViewerItem TargetItem { get; set; } 
public:  
   property ImageViewerItem^ TargetItem 
   { 
      ImageViewerItem^ get() 
      void set(ImageViewerItem^ value) 
   } 

Property Value

The item in TargetImageViewer that will currently be the target for the drop operation. Or null if the drag item is not over any item.

Remarks

This is the item in TargetImageViewer that will currently be the target for the drop operation. It can be null if the image viewer does not have any items or if the object is not on top of any item boundary.

Example
C#
Copied to clipboard
using Leadtools; 
using Leadtools.Controls; 
using Leadtools.Codecs; 
using Leadtools.Drawing; 
 
using Leadtools.ImageProcessing; 
using Leadtools.ImageProcessing.Color; 
 
_imageViewer.InteractiveModes.BeginUpdate(); 
ImageViewerDragInteractiveMode dragMode = new ImageViewerDragInteractiveMode(); 
dragMode.AllowedEffects = DragDropEffects.Copy | DragDropEffects.Move | DragDropEffects.Link; 
_imageViewer.InteractiveModes.Add(dragMode); 
_imageViewer.InteractiveModes.EndUpdate(); 
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.