←Select platform

DefaultInteractiveMode Property

Summary

Gets or sets the ImageViewerInteractiveMode that the viewer control should use to process default input events.

Syntax

C#
VB
Objective-C
WinRT C#
public virtual Leadtools.Controls.ImageViewerInteractiveMode DefaultInteractiveMode {get; set;} 
Public Overridable Property DefaultInteractiveMode As Leadtools.Controls.ImageViewerInteractiveMode 
public virtual Leadtools.Controls.ImageViewerInteractiveMode DefaultInteractiveMode {get; set;} 
@property (nonatomic, strong, nullable) LTImageViewerInteractiveMode *defaultInteractiveMode 
  
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

WinRT C#
using Leadtools; 
using Leadtools.Codecs; 
using Leadtools.Controls; 
 
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

Help Version 19.0.2017.10.28
Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Controls Assembly (WinRT / WPF / iOS / OS X / Android)