←Select platform

IsKeyboardEnabled Property

Summary

Indicates whether to enable panning and zooming with the keyboard.

Syntax

C#
VB
C++
public bool IsKeyboardEnabled { get; set; } 
Public Property IsKeyboardEnabled() As Boolean 
   Get 
   Set 
public:  
   property bool IsKeyboardEnabled 
   { 
      bool get() 
      void set(bool value) 
   } 

Property Value

true to enable panning and zooming with the keyboard, otherwise; false. Default value is true.

Remarks

This value is used only when the platform has keyboard support.

When the value of IsKeyboardEnabled is true, then the viewer will pan and zoom using the following keys:

If the ZoomKeyModifier is pressed, zooms the viewer out.

Otherwise, pans the viewer one line down (or one page if PageKeyModifier is pressed).
Key Description
System.Windows.Forms.Keys

If the ZoomKeyModifier is pressed, zooms the viewer in.

Otherwise, pans the viewer one line up (or one page if PageKeyModifier is pressed).
System.Windows.Forms.Keys
System.Windows.Forms.Keys Pans the viewer one line to the left (or one page if PageKeyModifier is pressed).
System.Windows.Forms.Keys Pans the viewer one line to the right (or one page if PageKeyModifier is pressed).
System.Windows.Forms.Keys Pans the viewer one page up.
System.Windows.Forms.Keys Pans the viewer one page down.
System.Windows.Forms.Keys Pans the viewer to the minimum allowed value (top-left).
System.Windows.Forms.Keys Pans the viewer to the maximum allowed value (bottom-right).

The values of a "page" is calculated as follows:

If the viewer has more than one item, then "page" is the width or height of the current largest visible item (GetLargestVisibleItem.

If the viewer has one item, then "page" is the current view area width or height ViewBounds.

The value of "line" is always tenth of "page".

Requirements

Target Platforms

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

Leadtools.Controls.WinForms Assembly