(Leadtools.Controls)

DefaultInteractiveMode Property

Show in webframe
Example 





Gets or sets the ImageViewerInteractiveMode that the viewer control should use to process default input events.
Syntax
public virtual ImageViewerInteractiveMode DefaultInteractiveMode {get; set;}
Public Overridable Property DefaultInteractiveMode As ImageViewerInteractiveMode
public virtual ImageViewerInteractiveMode DefaultInteractiveMode {get; set;}

            

            
 
get_DefaultInteractiveMode();
set_DefaultInteractiveMode(value);
Object.defineProperty('DefaultInteractiveMode');

Property Value

The interactive mode for default input events in the viewer control. The default value is null.
Remarks

To use an interactive mode, you create an instance of any of the derived classes and assign it to the viewer using one of the following methods:

Example
Copy Code  
using Leadtools;
using Leadtools.Codecs;
using Leadtools.Controls;

[TestMethod]
void DefaultInteractiveModeExample(int i)
{
   const int CenterAt = 1;
   const int MagnifyGlass = 2;
   switch (i)
   {
      case CenterAt:
         //set interactive Mode to be CenterAt
         _viewer.DefaultInteractiveMode = new ImageViewerCenterAtInteractiveMode();
         break;
      case MagnifyGlass:
         //set interactive Mode to be Magnify Glass
         _viewer.DefaultInteractiveMode = new ImageViewerMagnifyGlassInteractiveMode();
         break;
   }
}
Requirements

Target Platforms

See Also

Reference

ImageViewer Class
ImageViewer Members

 

 


Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.